Exemple #1
0
        IEnumerator TimingSkip()
        {
            while (!TwFinished)
            {
                yield return(null);
            }

            PositionTweener.onFinished.Clear();
            PositionTweener2.SetOnFinished(delegate()
            {
                FusionAudio.PostEvent("UI/Battle/StartBattle");
                GlobalMenuManager.Instance.Open("LTHeroBattleMenu", LTHeroBattleModel.GetInstance().choiceData);
                Container.CustomSetActive(false);
            });
            PositionTweener.from.x  = TP1FromX[1];
            PositionTweener.to.x    = TP1FromX[2];
            PositionTweener2.from.x = TP2FromX[1];
            PositionTweener2.to.x   = TP2FromX[2];

            while (LTHeroBattleModel.GetInstance().choiceData.choiceState != 1)
            {
                yield return(null);
            }

            PositionTweener.ResetToBeginning();
            PositionTweener.PlayForward();

            PositionTweener2.ResetToBeginning();
            PositionTweener2.PlayForward();
        }
Exemple #2
0
        public override void SetMenuData(object param)
        {
            base.SetMenuData(param);
            mParam     = param;
            TwFinished = false;

            PositionTweener.from.x  = TP1FromX[0];
            PositionTweener.to.x    = TP1FromX[1];
            PositionTweener2.from.x = TP2FromX[0];
            PositionTweener2.to.x   = TP2FromX[1];

            PositionTweener.SetOnFinished(delegate()
            {
                TwFinished = true;
            });

            PositionTweener.ResetToBeginning();
            PositionTweener.PlayForward();

            PositionTweener2.ResetToBeginning();
            PositionTweener2.PlayForward();
        }