예제 #1
0
        public void StartLoad()
        {
            ActorProfessional rProfessional = GameConfig.Instance.GetActorProfessional(this.ProfessionalID);

            this.Parent.ProfessionalDesc.text = rProfessional.Desc;
            mActorCreateRequest = Actor.CreateActor(-1, rProfessional.HeroID, ActorLoadCompleted);
        }
예제 #2
0
 public void OnValueChanged()
 {
     if (this.SelectedToggle.isOn && this.Parent.SelectedPlayerItem != this)
     {
         Account.Instance.ActiveActor   = this.mNetActor;
         this.Parent.SelectedPlayerItem = this;
         mActorCreateRequest            = Actor.CreateActor(this.mNetActor.ActorID, this.mNetActor.Professional.HeroID, ActorLoadCompleted);
     }
     else if (!this.SelectedToggle.isOn)
     {
         UtilTool.SafeDestroy(mActorCreateRequest.actor.ExhibitActor.ActorGo);
         mActorCreateRequest.Stop();
     }
 }