Separated walk AI from demon/patron reactions.
This commit is contained in:
parent
0a866b7574
commit
1be47add34
11 changed files with 464 additions and 886 deletions
19
Assets/Scripts/Demon.cs
Normal file
19
Assets/Scripts/Demon.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue