private void OnDestroy() { if (ClientUnityIntegrationUtils.HasEngine()) { this.RemoveFromEntity(); } }
private void OnDestroy() { if ((this.moduleEntity != null) && ClientUnityIntegrationUtils.HasEngine()) { this.moduleEntity.RemoveComponent <ModuleCardItemUIComponent>(); } }
protected override void OnDestroy() { base.OnDestroy(); if ((this.slotEntity != null) && (ClientUnityIntegrationUtils.HasEngine() && this.slotEntity.HasComponent <ModuleCardItemUIComponent>())) { this.slotEntity.RemoveComponent <ModuleCardItemUIComponent>(); } }
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>(); } } }