private void OnDestroy()
 {
     friendly          = null;
     enemy             = null;
     ship              = null;
     explosion         = null;
     shell             = null;
     partExplosion     = null;
     count             = null;
     GetMaterial       = null;
     arrows            = null;
     downTexts         = null;
     DelayedActionsCor = null;
     ResultPhaseCor    = null;
     hukidashi         = null;
     AttackCor         = null;
     NowWaitCor        = null;
 }
 private void Awake()
 {
     base.get_transform().set_parent(GameObject.Find("/StrategyTaskManager/Map Root").get_transform());
     base.get_transform().set_localScale(Vector3.get_one());
     base.get_transform().set_localPosition(new Vector3(-459.45f, 144f, -24.8f));
     this.friendly      = base.get_transform().Find("Friendly/Container").GetComponent <TileAnimationCharacter>();
     this.enemy         = base.get_transform().Find("Enemy/Container").GetComponent <TileAnimationCharacter>();
     this.ship          = base.get_transform().Find("Ship/ShipInner").GetComponent <UISprite>();
     this.explosion     = base.get_transform().Find("Explosion").GetComponent <UITexture>();
     this.shell         = base.get_transform().Find("Shell").GetComponent <TileAnimationAttackShell>();
     this.partExplosion = base.get_transform().Find("ParticleExplosion").GetComponent <ParticleSystem>();
     this.count         = base.get_transform().Find("Count").GetComponent <UILabel>();
     this.GetMaterial   = base.get_transform().Find("GetMaterial").GetComponent <UIWidget>();
     this.arrows        = new UITexture[4];
     for (int i = 0; i < 4; i++)
     {
         this.arrows[i] = base.get_transform().Find("GetMaterial/Label_GetMaterial/Grid/GetMaterial" + (i + 1) + "/Arrow").GetComponent <UITexture>();
     }
     this.downTexts = new UILabel[4];
     for (int j = 0; j < 4; j++)
     {
         this.downTexts[j] = base.get_transform().Find("GetMaterial/Label_GetMaterial/Grid/GetMaterial" + (j + 1) + "/num").GetComponent <UILabel>();
     }
     this.timer             = 0f;
     this.flicker           = false;
     this.on                = false;
     this.ship.alpha        = 0f;
     this.count.alpha       = 0f;
     this.count.text        = string.Empty;
     this.GetMaterial.alpha = 0f;
     for (int k = 0; k < 4; k++)
     {
         this.arrows[k].alpha   = 0f;
         this.downTexts[k].text = string.Empty;
     }
     this.isFinished = false;
     this.cnt        = App.rand.Next(7) + 3;
     this.tot        = this.cnt;
     this.partExplosion.Pause(true);
 }
 private void Awake()
 {
     base.transform.parent        = GameObject.Find("/StrategyTaskManager/Map Root").transform;
     base.transform.localScale    = Vector3.one;
     base.transform.localPosition = new Vector3(-459.45f, 144f, -24.8f);
     friendly      = ((Component)base.transform.Find("Friendly/Container")).GetComponent <TileAnimationCharacter>();
     enemy         = ((Component)base.transform.Find("Enemy/Container")).GetComponent <TileAnimationCharacter>();
     ship          = ((Component)base.transform.Find("Ship/ShipInner")).GetComponent <UISprite>();
     explosion     = ((Component)base.transform.Find("Explosion")).GetComponent <UITexture>();
     shell         = ((Component)base.transform.Find("Shell")).GetComponent <TileAnimationAttackShell>();
     partExplosion = ((Component)base.transform.Find("ParticleExplosion")).GetComponent <ParticleSystem>();
     count         = ((Component)base.transform.Find("Count")).GetComponent <UILabel>();
     GetMaterial   = ((Component)base.transform.Find("GetMaterial")).GetComponent <UIWidget>();
     arrows        = new UITexture[4];
     for (int i = 0; i < 4; i++)
     {
         arrows[i] = ((Component)base.transform.Find("GetMaterial/Label_GetMaterial/Grid/GetMaterial" + (i + 1) + "/Arrow")).GetComponent <UITexture>();
     }
     downTexts = new UILabel[4];
     for (int j = 0; j < 4; j++)
     {
         downTexts[j] = ((Component)base.transform.Find("GetMaterial/Label_GetMaterial/Grid/GetMaterial" + (j + 1) + "/num")).GetComponent <UILabel>();
     }
     timer             = 0f;
     flicker           = false;
     on                = false;
     ship.alpha        = 0f;
     count.alpha       = 0f;
     count.text        = string.Empty;
     GetMaterial.alpha = 0f;
     for (int k = 0; k < 4; k++)
     {
         arrows[k].alpha   = 0f;
         downTexts[k].text = string.Empty;
     }
     isFinished = false;
     cnt        = App.rand.Next(7) + 3;
     tot        = cnt;
     partExplosion.Pause(true);
 }