Exemplo n.º 1
0
        public IEnumerator StartMonthAnimation(StrategyMapManager LogicMng, UserPreActionPhaseResultModel userPreAction, bool isDebug)
        {
            MaterialInfo materialInfo = userPreAction.GetMonthlyBonus();

            if (!materialInfo.HasPositive())
            {
                yield break;
            }
            SetActiveAnimType(AnimType.Month);
            StrategyMonthWeekBonus monthBonus     = MonthBonus;
            TurnString             datetimeString = LogicMng.DatetimeString;

            monthBonus.SetLabels(datetimeString.Month, materialInfo);
            anim.Play("MonthAnimation");
            int count = 0;

            while (anim.isPlaying && !isDebug)
            {
                count++;
                if (count > 100)
                {
                    break;
                }
                yield return(new WaitForEndOfFrame());
            }
        }
Exemplo n.º 2
0
 private void OnDestroy()
 {
     anim           = null;
     AnimationTypes = null;
     MonthBonus     = null;
     WeekBonus      = null;
     dayText        = null;
     key            = null;
 }