コード例 #1
0
 private void OnDestroy()
 {
     if (ClientUnityIntegrationUtils.HasEngine())
     {
         this.RemoveFromEntity();
     }
 }
コード例 #2
0
 private void OnDestroy()
 {
     if ((this.moduleEntity != null) && ClientUnityIntegrationUtils.HasEngine())
     {
         this.moduleEntity.RemoveComponent <ModuleCardItemUIComponent>();
     }
 }
コード例 #3
0
 protected override void OnDestroy()
 {
     base.OnDestroy();
     if ((this.slotEntity != null) && (ClientUnityIntegrationUtils.HasEngine() && this.slotEntity.HasComponent <ModuleCardItemUIComponent>()))
     {
         this.slotEntity.RemoveComponent <ModuleCardItemUIComponent>();
     }
 }
コード例 #4
0
 private void OnDisable()
 {
     if (!this.Empty && ClientUnityIntegrationUtils.HasEngine())
     {
         if (this.userEntity.HasComponent <LobbyUserListItemComponent>())
         {
             this.userEntity.RemoveComponent <LobbyUserListItemComponent>();
         }
         if (this.userEntity.HasComponent <UserSquadColorComponent>())
         {
             this.userEntity.RemoveComponent <UserSquadColorComponent>();
         }
     }
 }