Esempio n. 1
0
 public void ButtonEvt_FlowerPot()
 {
     if (_currentFlower.PlantIndex == -1)
     {
         LWTransitionController.TransitionOn(LWTransitionController.Controllers.Shop);
     }
     else
     {
         LWTransitionController.TransitionOn(LWTransitionController.Controllers.Popup);
     }
 }
Esempio n. 2
0
 public void ButtonEvt_OpenWater()
 {
     if (_currentFlower.PlantIndex == -1)
     {
         LWTransitionController.TransitionOn(LWTransitionController.Controllers.Shop);
     }
     else
     {
         LWTransitionController.TransitionOn(LWTransitionController.Controllers.Water);
     }
 }
Esempio n. 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);
            }
        }
Esempio n. 4
0
 public void ButtonEvt_Open(int index)
 {
     LWTransitionController.TransitionOn((LWTransitionController.Controllers)index);
 }