kill() public méthode

public kill ( ) : void
Résultat void
Exemple #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();
     }
 }
Exemple #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();
     }
 }
 public void kill()
 {
     crt.kill();
 }