kill() public method

public kill ( ) : void
return void
Ejemplo n.º 1
0
 void OnTriggerEnter(Collider col)
 {
     eth = GameObject.Find("Ether").GetComponent<Ether>();
     if (col.gameObject.name == "root") {
         crt = col.transform.parent.gameObject.GetComponent<Creature>();
         crt.kill();
     }
 }
Ejemplo n.º 2
0
 void OnTriggerEnter(Collider col)
 {
     eth = GameObject.Find("Ether").GetComponent <Ether>();
     if (col.gameObject.name == "root")
     {
         crt = col.transform.parent.gameObject.GetComponent <Creature>();
         crt.kill();
     }
 }
Ejemplo n.º 3
0
 public void kill()
 {
     crt.kill();
 }