Exemple #1
0
 public void ButtonEvt_FlowerPot()
 {
     if (_currentFlower.PlantIndex == -1)
     {
         LWTransitionController.TransitionOn(LWTransitionController.Controllers.Shop);
     }
     else
     {
         LWTransitionController.TransitionOn(LWTransitionController.Controllers.Popup);
     }
 }
Exemple #2
0
 public void ButtonEvt_OpenWater()
 {
     if (_currentFlower.PlantIndex == -1)
     {
         LWTransitionController.TransitionOn(LWTransitionController.Controllers.Shop);
     }
     else
     {
         LWTransitionController.TransitionOn(LWTransitionController.Controllers.Water);
     }
 }
Exemple #3
0
        private void Evt_OpenPopup(string day)
        {
            var date = DateTime.Parse(day);
            var dict = LWData.current.FlowerDictionary;

            LWData.current.MainFlower = date.ToShortDateString();
            if (dict[date.Month + "/" + date.Year][date.Day - 1].PlantIndex != -1)
            {
                LWTransitionController.TransitionOn(LWTransitionController.Controllers.Popup);
            }
            else
            {
                LWTransitionController.TransitionTo(LWTransitionController.Controllers.Pot,
                                                    LWTransitionController.Controllers.Shop);
            }
        }
Exemple #4
0
 public void ButtonEvt_Open(int index)
 {
     LWTransitionController.TransitionOn((LWTransitionController.Controllers)index);
 }