public void ShowFood(Enum.eFood eFood) { this.HideFood_All(); switch (eFood) { case Enum.eFood.RAW_MEAT: this.FOOD_1.SetActive(true); break; case Enum.eFood.CHEESE: this.FOOD_2.SetActive(true); break; case Enum.eFood.DONUT: this.FOOD_3.SetActive(true); break; } }
private void ButtonScenario_Foods(Enum.eFood eFood) { // :: Get DATAFood food = this.minister.DATASecretary.DictFood[(int)eFood]; // :: Pay bool check = this.minister.PLAYERSecretary.PayGold(food.price); if (check) { // :: UI this.Scenario_Update(); this.UIChief.ShowField_Food(false); this.UIChief.CanTouchButton_All(false); // :: GO this.GOChief.Show_Food(eFood); this.GOChief.Blink_Alert(); // :: Animation this.GOChief.Set_EndEat(() => { // :: GO this.GOChief.Hide_Food(); // :: Status this.curZombie.Add_CurCalmDown(food.calm_down); this.Scenario_Update(); }); this.GOChief.Set_EndAnimation(() => { // :: UI this.UIChief.CanTouchButton_All(true); }); this.Do_NextSeconds(() => { this.GOChief.DoAnimation_Zombie(Enum.eAnimation.EAT); }, 0.5f); } }
// : Show public void Show_Food(Enum.eFood eFood) { this.FOODLeader.ShowFood(eFood); }