kill() public method

public kill ( ) : void
return void
示例#1
0
文件: Catch.cs 项目: clomax/evosim
 void OnTriggerEnter(Collider col)
 {
     eth = GameObject.Find("Ether").GetComponent<Ether>();
     if (col.gameObject.name == "root") {
         crt = col.transform.parent.gameObject.GetComponent<Creature>();
         crt.kill();
     }
 }
示例#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();
 }