예제 #1
0
파일: Player.cs 프로젝트: corhal/Jackalia
 public void BeginChestOpen(RewardChest rewardChest)
 {
     timer         = 0.0f;
     previousTimer = 0;
     rewardChest.StartOpen();
     CurrentlyOpeningChest = rewardChest;
 }
예제 #2
0
파일: Chest.cs 프로젝트: corhal/Jackalia
 void Start()
 {
     RewardChest = new RewardChest(true, false);
     if (Player.Instance.CurrentAdventure.TreasureHunt && !POIData.Revealed)
     {
         gameObject.SetActive(false);
     }
 }
예제 #3
0
 public void TakeChestReward(RewardChest rewardChest)
 {
     Player.Instance.PlayerShipRewardChests.Add(rewardChest);
     CargoSlider.value = Player.Instance.PlayerShipRewardChests.Count;
     //Player.Instance.RewardChests.Add (rewardChest);
     // CargoSlider.value = Player.Instance.RewardChests.Count;
     //Player.Instance.OpenChest (rewardChest);
     //Player.Instance.RewardChests.Add (rewardChest);
 }
예제 #4
0
파일: Player.cs 프로젝트: corhal/Jackalia
 public void ReceiveChestReward(RewardChest rewardChest)
 {
     Player.Instance.TakeItems(rewardChest.RewardItems);
     UIOverlay.Instance.OpenImagesPopUp("Your reward:", rewardChest.RewardItems);
     Player.Instance.RewardChests.Remove(rewardChest);
 }