void OnTriggerEnter(Collider col) { eth = GameObject.Find("Ether").GetComponent<Ether>(); if (col.gameObject.name == "root") { crt = col.transform.parent.gameObject.GetComponent<Creature>(); crt.kill(); } }
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(); }