public void BeginChestOpen(RewardChest rewardChest) { timer = 0.0f; previousTimer = 0; rewardChest.StartOpen(); CurrentlyOpeningChest = rewardChest; }
void Start() { RewardChest = new RewardChest(true, false); if (Player.Instance.CurrentAdventure.TreasureHunt && !POIData.Revealed) { gameObject.SetActive(false); } }
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); }
public void ReceiveChestReward(RewardChest rewardChest) { Player.Instance.TakeItems(rewardChest.RewardItems); UIOverlay.Instance.OpenImagesPopUp("Your reward:", rewardChest.RewardItems); Player.Instance.RewardChests.Remove(rewardChest); }