Beispiel #1
0
 private void OnDestroy()
 {
     _parShipBreak  = null;
     _parShipBreak2 = null;
     _breakMaterial = null;
     _anim          = null;
 }
 private void OnDestroy()
 {
     this._parShipBreak  = null;
     this._parShipBreak2 = null;
     this._breakMaterial = null;
     this._anim          = null;
 }
Beispiel #3
0
 public void init()
 {
     _breakMaterial = ((Component)base.transform.FindChild("Material1")).GetComponent <UiBreakMaterialIcon>();
     _breakMaterial.init();
     _parShipBreak  = ((Component)base.transform.FindChild("Smoke")).GetComponent <ParticleSystem>();
     _parShipBreak2 = ((Component)base.transform.FindChild("Smoke2")).GetComponent <ParticleSystem>();
     ((Component)_parShipBreak).SetActive(isActive: false);
     ((Component)_parShipBreak2).SetActive(isActive: false);
     _anim = GetComponent <Animation>();
     changeItems();
     _anim.Stop();
 }
 public void init()
 {
     this._breakMaterial = base.get_transform().FindChild("Material1").GetComponent <UiBreakMaterialIcon>();
     this._breakMaterial.init();
     this._parShipBreak  = base.get_transform().FindChild("Smoke").GetComponent <ParticleSystem>();
     this._parShipBreak2 = base.get_transform().FindChild("Smoke2").GetComponent <ParticleSystem>();
     this._parShipBreak.SetActive(false);
     this._parShipBreak2.SetActive(false);
     this._anim = base.GetComponent <Animation>();
     this.changeItems();
     this._anim.Stop();
 }