private void DestroyCharacterImmediately() { if (this.currentCharacter != null) { this.currentCharacter.Destroy(); this.currentCharacter = null; } }
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(); }
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); }
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; } }
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); }
private void OnCharacterAnimatedAway() { this.currentCharacter = null; this.DestroyIfEmpty(); }