Esempio n. 1
0
 public void Destroy()
 {
     if (this.destroyed)
     {
         return;
     }
     this.KillActiveTimer();
     if (this.holo != null)
     {
         UnityEngine.Object.Destroy(this.holo);
         UnityEngine.Object.Destroy(this.holoAssetPositioner);
         UnityEngine.Object.Destroy(this.holoCam.gameObject);
         UnityEngine.Object.Destroy(this.holoContainer);
         this.holo                = null;
         this.holoCam             = null;
         this.holoAssetPositioner = null;
         this.holoContainer       = null;
         this.holoAnimator        = null;
     }
     if (this.holoHandle != AssetHandle.Invalid)
     {
         this.assetManager.Unload(this.holoHandle);
         this.holoHandle = AssetHandle.Invalid;
     }
     this.OnDoneLoading       = null;
     this.CharacterId         = null;
     this.destructionCallback = null;
     this.destroyed           = true;
     this.turnedOn            = false;
     this.DestroyCharacterAssets();
     this.UnloadAndResetPrevHandle();
 }
Esempio n. 2
0
 public void CloseAndDestroy(HolocommScreen.HoloCallback callback)
 {
     this.destructionCallback = callback;
     this.AnimateTurnOff();
 }