Ejemplo n.º 1
0
 public void NotifyPlayer(Parameters p = null)
 {
     if (p == null)
     {
         return;
     }
     if (p.HasParameter("Checker"))
     {
         MGColliderHelper tmp = p.GetWithKeyParameterValue <MGColliderHelper>("Checker", null);
         NotifyMinigame(tmp, p.GetWithKeyParameterValue <bool>("Entering", false));
     }
     else if (p.HasParameter("Character"))
     {
         BareboneCharacter tmp = p.GetWithKeyParameterValue <BareboneCharacter>("Character", null);
         NotifyNearNPC(tmp, p.GetWithKeyParameterValue <bool>("Entering", false));
     }
 }
Ejemplo n.º 2
0
 public void NotifyMinigame(MGColliderHelper thisChecker = null, bool isEntering = false)
 {
     if (thisChecker == null)
     {
         return;
     }
     if (isEntering)
     {
         minigameFromThis = thisChecker;
     }
     else
     {
         if (minigameFromThis == thisChecker)
         {
             minigameFromThis = null;
         }
     }
     minigameNotif.SetActive(isEntering);
 }