Separated walk AI from demon/patron reactions.

This commit is contained in:
shakurass 2014-04-27 11:02:42 -06:00
commit 1be47add34
11 changed files with 464 additions and 886 deletions

19
Assets/Scripts/Demon.cs Normal file
View file

@ -0,0 +1,19 @@
using UnityEngine;
using System.Collections;
public class Demon : MonoBehaviour {
void OnTriggerEnter(Collider other) {
//Instantiate(explosion, transform.position, transform.rotation);
if (other.tag == "Shank")
{
//Instantiate (playerExplosion, other.transform.position, other.transform.rotation);
Destroy(gameObject);
}
if (other.tag == "VVAura") {
renderer.material.color = Color.red;
}
}
}