// Update is called once per frame void Update() { Debug.Log(baseSystem.GetBaseStorageOres(Global.OresTypes.FinalKey)); if (baseSystem.GetFinalStorageOresAmount(Global.OresTypes.FinalKey) > 0.0f) { isGameOver = true; TaskCompleted(); Global.userInterfaceActiveManager.SetMenuVisibilitySmoothly(Global.MenusType.Win_Screen, true); } if (!isGameOver) // For update the quest level { if (timerManager.CurrentTime <= 0.0f) { Debug.Log("isGameOver"); isGameOver = true; Global.userInterfaceActiveManager.SetMenuVisibilitySmoothly(Global.MenusType.Lose_Screen, true); } if (baseSystem.GetBaseStorageOres(Global.OresTypes.Ore_No1) >= Global.targetQuest_OreNo1_Amount[currentQuestLevel]) { if (currentQuestLevel < (int)Global.QuestLevels.Quest_03) { baseSystem.GetOutSomeStorageOresForQuestSystem(this, Global.OresTypes.Ore_No1, (Global.QuestLevels)currentQuestLevel); currentQuestLevel++; currentPermissiveZoneRadius = Global.zonesRadius[(int)Global.ZoneLevels.EasyZone + currentQuestLevel]; } else { } } } }
// Update is called once per frame void Update() { //shipOreNo1Text.text = text_ShipOreNo1 + shipEntity.GetShipOresAmount(Global.OresTypes.Ore_No1); //shipOreNo2Text.text = text_ShipOreNo2 + shipEntity.GetShipOresAmount(Global.OresTypes.Special_Ore); //oreAmountText.text = text_OreAmount + baseSystem.GetBaseStorageOres(Global.OresTypes.Ore_No1); //targetOreAmountText.text = text_TargetOreAmount + Global.targetQuest_OreNo1_Amount[Global.gameManager.CurrentQuestLevel]; targetAmountText.text = text_TargetAmount + baseSystem.GetBaseStorageOres(Global.OresTypes.Ore_No1) + text_TargetAmountMidile + Global.targetQuest_OreNo1_Amount[Global.gameManager.CurrentQuestLevel]; //LeftOreAmount = Global.targetQuest_OreNo1_Amount[Global.gameManager.CurrentQuestLevel] - baseSystem.GetBaseStorageOres(Global.OresTypes.Ore_No1); //LeftOreAmount = (LeftOreAmount <= 0.0f) ? 0.0f : LeftOreAmount; //leftOreAmountText.text = text_LeftOreAmount + LeftOreAmount; }