private void _initHPGauge() { if (_battleHpGauges != null) { _battleHpGauges.Dispose(); } }
private void _destroyHPGauge() { if (_battleHpGauges != null) { _battleHpGauges.Dispose(); } }
public void OnSetDestroy() { Mem.Del(ref stateType); Mem.Del(ref _eHitState); Mem.Del(ref _actCallback); Mem.Del(ref _clsTorpedo); Mem.Del(ref _camFriend); Mem.Del(ref _torpedoParticle); Mem.Del(ref transform); Mem.DelListSafe(ref _listPSTorpedoWake); if (_rescueCutIn != null) { _rescueCutIn.gameObject.Discard(); } Mem.Del(ref _rescueCutIn); if (_battleHpGauges != null) { _battleHpGauges.Dispose(); } Mem.Del(ref _battleHpGauges); if (_uiHpGaugePanel != null) { UnityEngine.Object.Destroy(_uiHpGaugePanel.gameObject); } Mem.Del(ref _uiHpGaugePanel); }