예제 #1
0
 private void OnStartMakingDrink()
 {
     if (!usingBar)
     {
         playerState.PlayerStatus = PlayerStatus.Bar;
         CameraSystem.GetCameraSystem().SetCameraMode(CameraSystem.CameraMode.Bar);
         usingBar = true;
     }
 }
예제 #2
0
        private void StopMakingDrink()
        {
            if (usingBar)
            {
                CameraSystem.GetCameraSystem().SetCameraMode(CameraSystem.CameraMode.Following);
                if (mixologyBook != null)
                {
                    mixologyBook.GetState <ActiveState>().IsActive = false;
                }

                if (playerInventory.Child != null)
                {
                    playerInventory.Child.GameObject.transform.localPosition = Vector3.zero;
                }

                usingBar = false;
                playerState.PlayerStatus = PlayerStatus.FreeMove;
            }
        }