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