Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HIT HIT DAMAGE REPORT
  • Loading branch information
smz11006 committed Nov 18, 2015
1 parent 1049408 commit 99dfade
Show file tree
Hide file tree
Showing 65 changed files with 43,009 additions and 58 deletions.
Binary file modified Roguelike/Assets/Scenes/EnemyAITest.unity
Binary file not shown.
10 changes: 6 additions & 4 deletions Roguelike/Assets/Scripts/EnemyZombie.cs
Expand Up @@ -14,15 +14,17 @@ public class EnemyZombie : MonoBehaviour {
void Update () void Update ()
{ {
RaycastHit hit; RaycastHit hit;
ray = new Ray(transform.position, Vector3.forward); // ray = new Ray(player.transform.position, transform.position);

ray = new Ray(gameObject.transform.position, new Vector3(gameObject.transform.position.x, gameObject.transform.position.y, gameObject.transform.position.z - 4));
if (Physics.Raycast(ray, out hit)) if (Physics.Raycast(ray, out hit))
{ {
if(hit.collider == player) if (hit.collider.tag == "Player")
{ {
Debug.Log("Hit, hit, damage report"); Debug.Log("Hit, hit, damage report");
transform.position = player.transform.position; // transform.position = player.transform.position;
} }
else
Debug.Log("No Joy");
} }


} }
Expand Down
Binary file modified Roguelike/Library/CurrentLayout.dwlt
Binary file not shown.
Binary file not shown.
Binary file modified Roguelike/Library/ScriptAssemblies/Assembly-CSharp.dll.mdb
Binary file not shown.
8 changes: 8 additions & 0 deletions Roguelike/Library/UnityAssemblies/Mono.Cecil.xml

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.

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

8 changes: 8 additions & 0 deletions Roguelike/Library/UnityAssemblies/UnityEditor.Graphs.xml

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.

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.

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.

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.

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.

14 changes: 14 additions & 0 deletions Roguelike/Library/UnityAssemblies/UnityEditor.iOS.Extensions.xml

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

0 comments on commit 99dfade

Please sign in to comment.