Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
setting up the facing thingy
  • Loading branch information
Tianzhu Zhang authored and Tianzhu Zhang committed Oct 8, 2013
1 parent d85e854 commit 37f5643
Show file tree
Hide file tree
Showing 22 changed files with 138 additions and 2 deletions.
Binary file modified Guardian of Silverkeep/Assets/New Terrain 1.asset
Binary file not shown.
Binary file modified Guardian of Silverkeep/Assets/New Terrain.asset
Binary file not shown.
12 changes: 12 additions & 0 deletions Guardian of Silverkeep/Assets/Scripts/Enemy_StandardWeak.cs
Expand Up @@ -13,6 +13,10 @@ public class Enemy_StandardWeak : MonoBehaviour
private CharacterController controller;
//this is a test for child toggle
public GameObject testChild001;
public GameObject water_baddie_front;
public GameObject water_baddie_back;
public GameObject water_baddie_left;
public GameObject water_baddie_right;



Expand Down Expand Up @@ -44,6 +48,14 @@ public class Enemy_StandardWeak : MonoBehaviour
void Start ()
{
StartCoroutine(EnemyBehavior());
water_baddie_back = GameObject.Find("water_baddie_back");
water_baddie_front = GameObject.Find("water_baddie_front");
water_baddie_left = GameObject.Find("water_baddie_left");
water_baddie_right = GameObject.Find("water_baddie_right");
water_baddie_back.SetActive(false);
water_baddie_left.SetActive(false);
water_baddie_right.SetActive(false);
water_baddie_front.SetActive(true);
}

// Update is called once per frame
Expand Down
2 changes: 1 addition & 1 deletion Guardian of Silverkeep/Assets/Scripts/JoyStone.cs
Expand Up @@ -34,7 +34,7 @@ public class JoyStone : MonoBehaviour
if( distanceToHeroSqrf <= moneySuckRangeSqr)
{
float amtToMove = jstoneMovingSpeed * Time.deltaTime;
transform.Translate( (heroPosition - selfPosition) * amtToMove);
transform.Translate( (heroPosition - selfPosition) * amtToMove,Space.World);
}
}
//when collide with player call player addscore func to gain score
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,27 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: joystone 1
m_Shader: {fileID: 30, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: []
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 2800000, guid: 7e53829d09be4594eafd649733610e44, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,27 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: joystone 2
m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: []
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 2800000, guid: 7e53829d09be4594eafd649733610e44, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,27 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: joystone 3
m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: []
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 2800000, guid: 7e53829d09be4594eafd649733610e44, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,27 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 3
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: joystone
m_Shader: {fileID: 7, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: []
m_SavedProperties:
serializedVersion: 2
m_TexEnvs:
data:
first:
name: _MainTex
second:
m_Texture: {fileID: 2800000, guid: 7e53829d09be4594eafd649733610e44, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats: {}
m_Colors:
data:
first:
name: _Color
second: {r: 1, g: 1, b: 1, a: 1}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37f5643

Please sign in to comment.