Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nathan De Castro
Listen-Game
Commits
b259bd57
Commit
b259bd57
authored
Feb 14, 2017
by
Nathan De Castro
Browse files
WORKING_RIPPLE
parent
e62bb15d
Changes
62
Expand all
Hide whitespace changes
Inline
Side-by-side
Assembly-CSharp-Editor.csproj
View file @
b259bd57
...
...
@@ -49,6 +49,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile
Include=
"Assets\Editor\CreatePlane.cs"
/>
<Compile
Include=
"Assets\Editor\CrossPlatformInput\CrossPlatformInputInitialize.cs"
/>
<None
Include=
"Assets\Materials\Monster\shaders\vertexAnim.shader"
/>
<None
Include=
"Assets\Materials\Monster\shaders\bumpSpecmap.shader"
/>
...
...
Assets/Editor/128xMesh128x128W6L6HC.asset
0 → 100644
View file @
b259bd57
This diff is collapsed.
Click to expand it.
Assets/
Other Sources/Ripple/New Material.ma
t.meta
→
Assets/
Editor/128xMesh128x128W6L6HC.asse
t.meta
View file @
b259bd57
fileFormatVersion: 2
guid:
810cebed1f363c7479884f152d71de71
timeCreated: 148
691681
2
guid:
4a74b92bb206b854b8957378b6961fb5
timeCreated: 148
709046
2
licenseType: Free
NativeFormatImporter:
userData:
...
...
Assets/Editor/CreatePlane.cs
0 → 100644
View file @
b259bd57
using
UnityEngine
;
using
UnityEditor
;
public
class
CreatePlane
:
ScriptableWizard
{
public
enum
Orientation
{
Horizontal
,
Vertical
}
public
enum
AnchorPoint
{
TopLeft
,
TopHalf
,
TopRight
,
RightHalf
,
BottomRight
,
BottomHalf
,
BottomLeft
,
LeftHalf
,
Center
}
public
int
widthSegments
=
1
;
public
int
lengthSegments
=
1
;
public
float
width
=
1.0f
;
public
float
length
=
1.0f
;
public
Orientation
orientation
=
Orientation
.
Horizontal
;
public
AnchorPoint
anchor
=
AnchorPoint
.
Center
;
public
bool
addCollider
=
false
;
public
bool
createAtOrigin
=
true
;
public
bool
twoSided
=
false
;
public
string
optionalName
;
static
Camera
cam
;
static
Camera
lastUsedCam
;
[
MenuItem
(
"GameObject/Create Other/Custom Plane..."
)]
static
void
CreateWizard
()
{
cam
=
Camera
.
current
;
// Hack because camera.current doesn't return editor camera if scene view doesn't have focus
if
(!
cam
)
cam
=
lastUsedCam
;
else
lastUsedCam
=
cam
;
ScriptableWizard
.
DisplayWizard
(
"Create Plane"
,
typeof
(
CreatePlane
));
}
void
OnWizardUpdate
()
{
widthSegments
=
Mathf
.
Clamp
(
widthSegments
,
1
,
254
);
lengthSegments
=
Mathf
.
Clamp
(
lengthSegments
,
1
,
254
);
}
void
OnWizardCreate
()
{
GameObject
plane
=
new
GameObject
();
if
(!
string
.
IsNullOrEmpty
(
optionalName
))
plane
.
name
=
optionalName
;
else
plane
.
name
=
"Plane"
;
if
(!
createAtOrigin
&&
cam
)
plane
.
transform
.
position
=
cam
.
transform
.
position
+
cam
.
transform
.
forward
*
5.0f
;
else
plane
.
transform
.
position
=
Vector3
.
zero
;
Vector2
anchorOffset
;
string
anchorId
;
switch
(
anchor
)
{
case
AnchorPoint
.
TopLeft
:
anchorOffset
=
new
Vector2
(-
width
/
2.0f
,
length
/
2.0f
);
anchorId
=
"TL"
;
break
;
case
AnchorPoint
.
TopHalf
:
anchorOffset
=
new
Vector2
(
0.0f
,
length
/
2.0f
);
anchorId
=
"TH"
;
break
;
case
AnchorPoint
.
TopRight
:
anchorOffset
=
new
Vector2
(
width
/
2.0f
,
length
/
2.0f
);
anchorId
=
"TR"
;
break
;
case
AnchorPoint
.
RightHalf
:
anchorOffset
=
new
Vector2
(
width
/
2.0f
,
0.0f
);
anchorId
=
"RH"
;
break
;
case
AnchorPoint
.
BottomRight
:
anchorOffset
=
new
Vector2
(
width
/
2.0f
,-
length
/
2.0f
);
anchorId
=
"BR"
;
break
;
case
AnchorPoint
.
BottomHalf
:
anchorOffset
=
new
Vector2
(
0.0f
,-
length
/
2.0f
);
anchorId
=
"BH"
;
break
;
case
AnchorPoint
.
BottomLeft
:
anchorOffset
=
new
Vector2
(-
width
/
2.0f
,-
length
/
2.0f
);
anchorId
=
"BL"
;
break
;
case
AnchorPoint
.
LeftHalf
:
anchorOffset
=
new
Vector2
(-
width
/
2.0f
,
0.0f
);
anchorId
=
"LH"
;
break
;
case
AnchorPoint
.
Center
:
default
:
anchorOffset
=
Vector2
.
zero
;
anchorId
=
"C"
;
break
;
}
MeshFilter
meshFilter
=
(
MeshFilter
)
plane
.
AddComponent
(
typeof
(
MeshFilter
));
plane
.
AddComponent
(
typeof
(
MeshRenderer
));
string
planeAssetName
=
plane
.
name
+
widthSegments
+
"x"
+
lengthSegments
+
"W"
+
width
+
"L"
+
length
+
(
orientation
==
Orientation
.
Horizontal
?
"H"
:
"V"
)
+
anchorId
+
".asset"
;
Mesh
m
=
(
Mesh
)
AssetDatabase
.
LoadAssetAtPath
(
"Assets/Editor/"
+
planeAssetName
,
typeof
(
Mesh
));
if
(
m
==
null
)
{
m
=
new
Mesh
();
m
.
name
=
plane
.
name
;
int
hCount2
=
widthSegments
+
1
;
int
vCount2
=
lengthSegments
+
1
;
int
numTriangles
=
widthSegments
*
lengthSegments
*
6
;
if
(
twoSided
)
{
numTriangles
*=
2
;
}
int
numVertices
=
hCount2
*
vCount2
;
Vector3
[]
vertices
=
new
Vector3
[
numVertices
];
Vector2
[]
uvs
=
new
Vector2
[
numVertices
];
int
[]
triangles
=
new
int
[
numTriangles
];
Vector4
[]
tangents
=
new
Vector4
[
numVertices
];
Vector4
tangent
=
new
Vector4
(
1f
,
0f
,
0f
,
-
1f
);
int
index
=
0
;
float
uvFactorX
=
1.0f
/
widthSegments
;
float
uvFactorY
=
1.0f
/
lengthSegments
;
float
scaleX
=
width
/
widthSegments
;
float
scaleY
=
length
/
lengthSegments
;
for
(
float
y
=
0.0f
;
y
<
vCount2
;
y
++)
{
for
(
float
x
=
0.0f
;
x
<
hCount2
;
x
++)
{
if
(
orientation
==
Orientation
.
Horizontal
)
{
vertices
[
index
]
=
new
Vector3
(
x
*
scaleX
-
width
/
2f
-
anchorOffset
.
x
,
0.0f
,
y
*
scaleY
-
length
/
2f
-
anchorOffset
.
y
);
}
else
{
vertices
[
index
]
=
new
Vector3
(
x
*
scaleX
-
width
/
2f
-
anchorOffset
.
x
,
y
*
scaleY
-
length
/
2f
-
anchorOffset
.
y
,
0.0f
);
}
tangents
[
index
]
=
tangent
;
uvs
[
index
++]
=
new
Vector2
(
x
*
uvFactorX
,
y
*
uvFactorY
);
}
}
index
=
0
;
for
(
int
y
=
0
;
y
<
lengthSegments
;
y
++)
{
for
(
int
x
=
0
;
x
<
widthSegments
;
x
++)
{
triangles
[
index
]
=
(
y
*
hCount2
)
+
x
;
triangles
[
index
+
1
]
=
((
y
+
1
)
*
hCount2
)
+
x
;
triangles
[
index
+
2
]
=
(
y
*
hCount2
)
+
x
+
1
;
triangles
[
index
+
3
]
=
((
y
+
1
)
*
hCount2
)
+
x
;
triangles
[
index
+
4
]
=
((
y
+
1
)
*
hCount2
)
+
x
+
1
;
triangles
[
index
+
5
]
=
(
y
*
hCount2
)
+
x
+
1
;
index
+=
6
;
}
if
(
twoSided
)
{
// Same tri vertices with order reversed, so normals point in the opposite direction
for
(
int
x
=
0
;
x
<
widthSegments
;
x
++)
{
triangles
[
index
]
=
(
y
*
hCount2
)
+
x
;
triangles
[
index
+
1
]
=
(
y
*
hCount2
)
+
x
+
1
;
triangles
[
index
+
2
]
=
((
y
+
1
)
*
hCount2
)
+
x
;
triangles
[
index
+
3
]
=
((
y
+
1
)
*
hCount2
)
+
x
;
triangles
[
index
+
4
]
=
(
y
*
hCount2
)
+
x
+
1
;
triangles
[
index
+
5
]
=
((
y
+
1
)
*
hCount2
)
+
x
+
1
;
index
+=
6
;
}
}
}
m
.
vertices
=
vertices
;
m
.
uv
=
uvs
;
m
.
triangles
=
triangles
;
m
.
tangents
=
tangents
;
m
.
RecalculateNormals
();
AssetDatabase
.
CreateAsset
(
m
,
"Assets/Editor/"
+
planeAssetName
);
AssetDatabase
.
SaveAssets
();
}
meshFilter
.
sharedMesh
=
m
;
m
.
RecalculateBounds
();
if
(
addCollider
)
plane
.
AddComponent
(
typeof
(
BoxCollider
));
Selection
.
activeObject
=
plane
;
}
}
\ No newline at end of file
Assets/Editor/CreatePlane.cs.meta
0 → 100644
View file @
b259bd57
fileFormatVersion: 2
guid: f4f61521c7e2f1f49b146c36ce4ff2e6
timeCreated: 1487090002
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Editor/Plane128x128W1L1HC.asset
0 → 100644
View file @
b259bd57
This diff is collapsed.
Click to expand it.
Assets/Editor/Plane128x128W1L1HC.asset.meta
0 → 100644
View file @
b259bd57
fileFormatVersion: 2
guid: 2e74733e18a0c4a42b808af011b6aacc
timeCreated: 1487090157
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
Assets/Other Sources/Ripple/New Material.mat
deleted
100644 → 0
View file @
e62bb15d
%YAML
1.1
%TAG
!u!
tag:unity3d.com,2011:
---
!u!21
&2100000
Material
:
serializedVersion
:
6
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
0
}
m_Name
:
New Material
m_Shader
:
{
fileID
:
28
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_ShaderKeywords
:
m_LightmapFlags
:
5
m_CustomRenderQueue
:
-1
stringTagMap
:
{}
m_SavedProperties
:
serializedVersion
:
2
m_TexEnvs
:
-
first
:
name
:
_BumpMap
second
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
first
:
name
:
_Cube
second
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
-
first
:
name
:
_MainTex
second
:
m_Texture
:
{
fileID
:
0
}
m_Scale
:
{
x
:
1
,
y
:
1
}
m_Offset
:
{
x
:
0
,
y
:
0
}
m_Floats
:
-
first
:
name
:
_Cutoff
second
:
0.5
-
first
:
name
:
_Parallax
second
:
0.0132835815
-
first
:
name
:
_Shininess
second
:
0.56573695
m_Colors
:
-
first
:
name
:
_Color
second
:
{
r
:
0.4
,
g
:
1
,
b
:
1
,
a
:
0.24
}
-
first
:
name
:
_ReflectColor
second
:
{
r
:
1
,
g
:
0.43529412
,
b
:
0.8117647
,
a
:
1
}
-
first
:
name
:
_SpecColor
second
:
{
r
:
0.4
,
g
:
1
,
b
:
0.4
,
a
:
1
}
---
!u!1002
&2100001
EditorExtensionImpl
:
serializedVersion
:
6
Assets/Other Sources/Ripple/RipplePlane.prefab
View file @
b259bd57
...
...
@@ -9,38 +9,34 @@ Prefab:
m_Modifications
:
[]
m_RemovedComponents
:
[]
m_ParentPrefab
:
{
fileID
:
0
}
m_RootGameObject
:
{
fileID
:
1
8021246511850
64
}
m_RootGameObject
:
{
fileID
:
1
0741636965163
64
}
m_IsPrefabParent
:
1
---
!u!1
&10
49480624652460
---
!u!1
&10
74163696516364
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
4607767398666284
}
-
component
:
{
fileID
:
23388984037506834
}
-
component
:
{
fileID
:
111601143508679154
}
-
component
:
{
fileID
:
114240015916630166
}
-
component
:
{
fileID
:
33088446716562156
}
-
component
:
{
fileID
:
4893222388098864
}
m_Layer
:
0
m_Name
:
128xp
lane
m_Name
:
RippleP
lane
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!1
&1
52651552388213
0
---
!u!1
&1
08529165518769
0
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
4
580214526593280
}
-
component
:
{
fileID
:
3337
6699165076374
}
-
component
:
{
fileID
:
64
6
07
807228510372
}
-
component
:
{
fileID
:
23
917298595123638
}
-
component
:
{
fileID
:
4
403276698753482
}
-
component
:
{
fileID
:
33
4
37
110337189046
}
-
component
:
{
fileID
:
6407
1859940178228
}
-
component
:
{
fileID
:
23
495640269871906
}
m_Layer
:
0
m_Name
:
collision plane
m_TagString
:
Untagged
...
...
@@ -48,76 +44,80 @@ GameObject:
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!1
&1
802124651185064
---
!u!1
&1
492582809623812
GameObject
:
m_ObjectHideFlags
:
0
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
serializedVersion
:
5
m_Component
:
-
component
:
{
fileID
:
4104538227611206
}
-
component
:
{
fileID
:
4929360730828400
}
-
component
:
{
fileID
:
33641203941365846
}
-
component
:
{
fileID
:
23960953856964188
}
-
component
:
{
fileID
:
111989919729618100
}
-
component
:
{
fileID
:
114187293852465328
}
m_Layer
:
0
m_Name
:
RippleP
lane
m_Name
:
128xp
lane
m_TagString
:
Untagged
m_Icon
:
{
fileID
:
0
}
m_NavMeshLayer
:
0
m_StaticEditorFlags
:
0
m_IsActive
:
1
---
!u!4
&4
104538227611206
---
!u!4
&4
403276698753482
Transform
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1
802124
65
1
18
5064
}
m_GameObject
:
{
fileID
:
1
085291
65
5
18
7690
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
4
,
y
:
1
,
z
:
4
}
m_Children
:
-
{
fileID
:
4607767398666284
}
-
{
fileID
:
4580214526593280
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
4893222388098864
}
m_RootOrder
:
1
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!4
&4
580214526593280
---
!u!4
&4
893222388098864
Transform
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1
526515523882130
}
m_GameObject
:
{
fileID
:
1
074163696516364
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
4104538227611206
}
m_RootOrder
:
1
m_LocalScale
:
{
x
:
4
,
y
:
1
,
z
:
4
}
m_Children
:
-
{
fileID
:
4929360730828400
}
-
{
fileID
:
4403276698753482
}
m_Father
:
{
fileID
:
0
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!4
&4
607767398666
284
---
!u!4
&4
9293607308
284
00
Transform
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1
0
49
4
8062
4652460
}
m_GameObject
:
{
fileID
:
149
2582
80
9
62
3812
}
m_LocalRotation
:
{
x
:
-0
,
y
:
-0
,
z
:
-0
,
w
:
1
}
m_LocalPosition
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalScale
:
{
x
:
1
,
y
:
1
,
z
:
1
}
m_Children
:
[]
m_Father
:
{
fileID
:
4
104538227611206
}
m_Father
:
{
fileID
:
4
893222388098864
}
m_RootOrder
:
0
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
---
!u!23
&23
388984037506834
---
!u!23
&23
495640269871906
MeshRenderer
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
10
4948062465246
0
}
m_Enabled
:
1
m_GameObject
:
{
fileID
:
10
8529165518769
0
}
m_Enabled
:
0
m_CastShadows
:
1
m_ReceiveShadows
:
1
m_MotionVectors
:
1
m_LightProbeUsage
:
1
m_ReflectionProbeUsage
:
1
m_Materials
:
-
{
fileID
:
2
10
0000
,
guid
:
5f377ddd01309ad4cb352876ed0fc22b
,
type
:
2
}
-
{
fileID
:
10
302
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
m_StaticBatchInfo
:
firstSubMesh
:
0
subMeshCount
:
0
...
...
@@ -135,20 +135,20 @@ MeshRenderer:
m_LightmapParameters
:
{
fileID
:
0
}
m_SortingLayerID
:
0
m_SortingOrder
:
0
---
!u!23
&239
1729859512363
8
---
!u!23
&239
6095385696418
8
MeshRenderer
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1
526515523882130
}
m_Enabled
:
0
m_GameObject
:
{
fileID
:
1
492582809623812
}
m_Enabled
:
1
m_CastShadows
:
1
m_ReceiveShadows
:
1
m_MotionVectors
:
1
m_LightProbeUsage
:
1
m_ReflectionProbeUsage
:
1
m_Materials
:
-
{
fileID
:
10
302
,
guid
:
0000000000000000f000000000000000
,
type
:
0
}
-
{
fileID
:
2
10
0000
,
guid
:
5f377ddd01309ad4cb352876ed0fc22b
,
type
:
2
}
m_StaticBatchInfo
:
firstSubMesh
:
0
subMeshCount
:
0
...
...
@@ -166,26 +166,26 @@ MeshRenderer:
m_LightmapParameters
:
{
fileID
:
0
}
m_SortingLayerID
:
0
m_SortingOrder
:
0
---
!u!33
&33
08844671656215
6
---
!u!33
&33
43711033718904
6
MeshFilter
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
10
4948062465246
0
}
m_Mesh
:
{
fileID
:
0
}
---
!u!33
&33
376699165076374
m_GameObject
:
{
fileID
:
10
8529165518769
0
}
m_Mesh
:
{
fileID
:
10209
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
---
!u!33
&33
641203941365846
MeshFilter
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1
526515523882130
}
m_Mesh
:
{
fileID
:
10209
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
---
!u!64
&64
6
07
807228510372
m_GameObject
:
{
fileID
:
1
492582809623812
}
m_Mesh
:
{
fileID
:
0
}
---
!u!64
&6407
1859940178228
MeshCollider
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1
52651552388213
0
}
m_GameObject
:
{
fileID
:
1
08529165518769
0
}
m_Material
:
{
fileID
:
0
}
m_IsTrigger
:
0
m_Enabled
:
1
...
...
@@ -194,12 +194,12 @@ MeshCollider:
m_InflateMesh
:
0
m_SkinWidth
:
0.01
m_Mesh
:
{
fileID
:
10209
,
guid
:
0000000000000000e000000000000000
,
type
:
0
}
---
!u!111
&111
601143508679154
---
!u!111
&111
989919729618100
Animation
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1
0
49
4
8062
4652460
}
m_GameObject
:
{
fileID
:
149
2582
80
9
62
3812
}
m_Enabled
:
1
serializedVersion
:
3
m_Animation
:
{
fileID
:
0
}
...
...
@@ -208,12 +208,12 @@ Animation:
m_PlayAutomatically
:
1
m_AnimatePhysics
:
0
m_CullingType
:
0
---
!u!114
&114
240015916630166
---
!u!114
&114
187293852465328
MonoBehaviour
:
m_ObjectHideFlags
:
1
m_PrefabParentObject
:
{
fileID
:
0
}
m_PrefabInternal
:
{
fileID
:
100100000
}
m_GameObject
:
{
fileID
:
1
0
49
4
8062
4652460
}
m_GameObject
:
{
fileID
:
149
2582
80
9
62
3812
}
m_Enabled
:
1
m_EditorHideFlags
:
0
m_Script
:
{
fileID
:
11500000
,
guid
:
03874d69177b2d54ba4eb2b4af03dbe9
,
type
:
3
}
...
...
Assets/Other Sources/Ripple/RipplePlane.prefab.meta
View file @
b259bd57
fileFormatVersion: 2
guid: d4bd53f01c2f4c44f89fd28aa4ca29c9
timeCreated: 148
6927622
timeCreated: 148
7024044
licenseType: Free
NativeFormatImporter:
userData:
...
...
Assets/Other Sources/Ripple/ocean.mat
View file @
b259bd57
...
...
@@ -25,7 +25,7 @@ Material:
m_Colors
:
-
first
:
name
:
_Color
second
:
{
r
:
1
,
g
:
0
,
b
:
0
,
a
:
1
}
second
:
{
r
:
0
,
g
:
0
.5862069
,
b
:
1
,
a
:
1
}
---
!u!1002
&2100001
EditorExtensionImpl
:
serializedVersion
:
6
Assets/Other Sources/Ripple/rippleSharp.cs
View file @
b259bd57
using
UnityEngine
;
using
System.Collections
;
public
class
rippleSharp
:
MonoBehaviour
{
...
...
@@ -13,10 +12,10 @@ public class rippleSharp : MonoBehaviour
private
Vector3
[]
vertices
;
//private Vector3[] normals ;
public
float
dampner
=
0.
999
f
;
public
float
dampner
=
0.
800
f
;
public
float
maxWaveHeight
=
2.0f
;
public
int
splashForce
=
10
00
;
public
int
splashForce
=
5
00
;