Ejemplo n.º 1
0
 public void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Player")
     {
         hd = other.gameObject.GetComponent <HealthCasters>();
         StartCoroutine(NoDamage());
         //GetComponent<MeshRenderer>().enabled = false;
         //GetComponent<BoxCollider>().enabled = false;
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     HC = GetComponent <HealthCasters> ();
 }
Ejemplo n.º 3
0
 void Start()
 {
     HC       = GetComponent <HealthCasters>();
     animator = GetComponent <Animator> ();
 }