Exemplo n.º 1
0
 void FishingInteract(InputAction.CallbackContext context)
 {
     switch (m_currState)
     {
     // Cast fishing rod.
     case FishingState.Aiming:
         m_currFishingSign.FishingArea.ActivateFish(true);
         m_fishingReticle.SetVelocityX(0.0f);
         m_fishingReticle.SetVelocityY(0.0f);
         m_fishingReticle.SetAnimTriggCastStart();
         m_fishingRod.SetAnimTriggCastStart();
         m_uiManager.ToggleInstructions("Casted");
         ChangeState(FishingState.Waiting);
         break;
     }
 }