예제 #1
0
 public void TryFix(Pickup item)
 {
     if (!item.HasNameDiscovered())
     {
         GameNotificationHandler.SendGameNotification(item.GameNotificationData());
     }
     if (item.CheckType() == correctItem)
     {
         SoundManager.PlayEvent(AKID.EVENTS.ITEM_PORT_POSITIVE, gameObject);
         ambientFixedEvent.Post(gameObject);
         ambientBrokenEvent.Stop(gameObject, 100);
         Fix();
     }
     else
     {
         SoundManager.PlayEvent(AKID.EVENTS.ITEM_PORT_NEGATIVE, gameObject);
         BreakOtherRooms();
     }
 }