コード例 #1
0
 private void DestroyCharacterImmediately()
 {
     if (this.currentCharacter != null)
     {
         this.currentCharacter.Destroy();
         this.currentCharacter = null;
     }
 }
コード例 #2
0
 public TransmissionsHolonetPopupView(HolonetScreen screen)
 {
     this.conflictEndVO       = null;
     this.lang                = Service.Get <Lang>();
     this.eventManager        = Service.Get <EventManager>();
     this.holonetScreen       = screen;
     this.holoPositioner      = null;
     this.currentCharacter    = null;
     this.currentTransmission = null;
     this.currentIndex        = 1;
     this.maxIndex            = 0;
     this.InitView();
 }
コード例 #3
0
 private void ShowHoloCharacter(string characterId)
 {
     if (this.currentCharacter != null)
     {
         this.currentCharacter.ChangeCharacter(characterId);
     }
     else
     {
         Vector3 vector = this.holoPositioner.LocalPosition;
         vector = this.holonetScreen.UXCamera.Camera.ScreenToViewportPoint(vector);
         this.currentCharacter = new HoloCharacter(characterId, vector);
     }
     this.currentCharacter.OnDoneLoading = new Action(this.EnableNextPrevButtons);
 }
コード例 #4
0
 public void CleanUp()
 {
     Service.Get <HolonetController>().TransmissionsController.OnTransmissionPopupClosed();
     this.eventManager.SendEvent(EventId.HolonetTabClosed, "incoming_transmission");
     if (this.currentCharacter != null)
     {
         this.currentCharacter.Destroy();
         this.currentCharacter = null;
     }
     if (this.battleTransmissionBattlesGrid != null)
     {
         this.battleTransmissionBattlesGrid.Clear();
         this.battleTransmissionBattlesGrid = null;
     }
 }
コード例 #5
0
        public void ShowHoloCharacter(string characterId)
        {
            if (!base.IsLoaded())
            {
                Service.Get <StaRTSLogger>().ErrorFormat("Cannot display {0} because screen is not loaded yet!", new object[]
                {
                    characterId
                });
                return;
            }
            Service.Get <UXController>().HUD.Visible = false;
            if (this.currentCharacter != null)
            {
                this.currentCharacter.ChangeCharacter(characterId);
                return;
            }
            Vector3 vector = this.holoPositioner.LocalPosition;

            vector = base.UXCamera.Camera.ScreenToViewportPoint(vector);
            this.currentCharacter = new HoloCharacter(characterId, vector);
        }
コード例 #6
0
 private void OnCharacterAnimatedAway()
 {
     this.currentCharacter = null;
     this.DestroyIfEmpty();
 }