예제 #1
0
 void OnTriggerEnter(Collider col)
 {
     if (col.gameObject.tag == "Creature")
     {
         Creature_AI ca = col.gameObject.GetComponent <Creature_AI> ();
         ca.MoveTo(transform.position);
     }
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     ca = GetComponent <Creature_AI> ();
     rb = GetComponent <Rigidbody> ();
 }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     ca = GetComponent <Creature_AI> ();
 }