示例#1
0
 public void OnTriggerEnter(Collider other)
 {
     if (other.CompareTag("Pickup"))
     {
         if (_pickup == null)
         {
             _pickup = other.GetComponent <PickupSpawner>().Pickup();
             _pickup.Use(this);
             _pickup = null;
         }
     }
 }