コード例 #1
0
 private void OnTriggerExit(Collider other)
 {
     if (other.GetComponent <Repairable>() != null)
     {
         canRepair = false;
         zone      = null;
         items.Clear();
     }
 }
コード例 #2
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.GetComponent <Repairable>() != null)
     {
         canRepair = true;
         zone      = other.GetComponent <Repairable>();
         items.Clear();
     }
 }