private void OnStartMakingDrink() { if (!usingBar) { playerState.PlayerStatus = PlayerStatus.Bar; CameraSystem.GetCameraSystem().SetCameraMode(CameraSystem.CameraMode.Bar); usingBar = true; } }
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; } }