Example #1
0
    void OnTriggerEnter(Collision other)
    {
        print(other.gameObject.name);
        Vector3 Pos = other.transform.position;

        NS.SetPoint(Pos.x, Pos.z);
        NS.Stop = true;
    }
 void OnTriggerStay(Collider other)
 {
     if (other.GetComponent <MasterItem>())
     {
         print(other.gameObject.name);
         ActorLocation = other.transform.position;
         NS.SetPoint(ActorLocation);
         SeeItem = true;
         MI      = other.GetComponent <MasterItem>();
     }
 }