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

        NS.SetPoint(Pos.x, Pos.z);
        NS.Stop = true;
    }
コード例 #2
0
 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>();
     }
 }