// Use this for initialization
    void Start()
    {
        ghostController   = GetComponent <GhostController>();
        ghostStateManager = ghostController.GetGhostStateManager();

        bouncingUp         = true;
        hasArrivedToCenter = false;
    }
Esempio n. 2
0
 private void UpdateGhostCounter()
 {
     if (currentGhost != null)
     {
         GhostStateManager ghostStateManager = currentGhost.GetGhostStateManager();
         if (ghostStateManager.GetGhostState() == GhostState.HOME)
         {
             ghostStateManager.IncrementDotCounter();
         }
         else
         {
             UpdateCurrentGhost();
         }
     }
 }