Пример #1
0
        public override void Enter(Action _action, Track _track)
        {
            base.Enter(_action, _track);
            this.actorObj = _action.GetActorHandle(this.targetId);
            if (!this.actorObj)
            {
                return;
            }
            if (ActorHelper.IsHostCtrlActor(ref this.actorObj))
            {
                uint startTime = (uint)Singleton <FrameSynchr> .GetInstance().LogicFrameTick;

                uint length = (uint)this.length;
                if (Singleton <CBattleSystem> .GetInstance().FightForm != null)
                {
                    string text = (!string.IsNullOrEmpty(this.key)) ? Singleton <CTextManager> .GetInstance().GetText(this.key) : string.Empty;

                    Singleton <CBattleSystem> .GetInstance().FightForm.StartGoBackProcessBar(startTime, length, text);
                }
            }
            if (ActorHelper.IsHostCampActor(ref this.actorObj))
            {
                BackCityCom_3DUI.ShowBack2City(this.actorObj);
            }
        }
Пример #2
0
 public override void Leave(Action _action, Track _track)
 {
     base.Leave(_action, _track);
     if (ActorHelper.IsHostCampActor(ref this.actorObj))
     {
         BackCityCom_3DUI.HideBack2City(this.actorObj);
     }
 }
Пример #3
0
 public override void Leave(Action _action, Track _track)
 {
     base.Leave(_action, _track);
     if (ActorHelper.IsHostCtrlActor(ref this.actorObj) && Singleton <CBattleSystem> .GetInstance().FightForm != null)
     {
         Singleton <CBattleSystem> .GetInstance().FightForm.EndGoBackProcessBar();
     }
     if (ActorHelper.IsHostCampActor(ref this.actorObj))
     {
         BackCityCom_3DUI.HideBack2City(this.actorObj);
     }
 }
Пример #4
0
 public override void Enter(Action _action, Track _track)
 {
     base.Enter(_action, _track);
     this.actorObj = _action.GetActorHandle(this.targetId);
     if (!this.actorObj)
     {
         return;
     }
     if (ActorHelper.IsHostCampActor(ref this.actorObj))
     {
         BackCityCom_3DUI.ShowBack2City(this.actorObj);
     }
 }