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();
     }
 }
コード例 #3
0
 public void kill()
 {
     crt.kill();
 }