Example #1
0
 private void DebugPlay()
 {
     this._iList       = ProdTorpedoCutIn.AnimationList.ProdTorpedoCutIn;
     this._actCallback = null;
     base.GetComponent <Animation>().Stop();
     base.Play(this._iList, null);
     this.debugShipInfo();
     if (this._iList == ProdTorpedoCutIn.AnimationList.ProdTorpedoCutIn || this._iList == ProdTorpedoCutIn.AnimationList.TorpedoCutInFriend)
     {
         ShipUtils.PlayTorpedoVoice(this.getTorpedoCutInShip(this._clsRaigeki, true));
     }
     else if (this._iList == ProdTorpedoCutIn.AnimationList.TorpedoCutInEnemy)
     {
     }
 }
Example #2
0
 private void init()
 {
     this._iList = ProdTorpedoCutIn.AnimationList.None;
     if (this._listShipTex == null)
     {
         this._listShipTex = new List <UITexture>();
         using (IEnumerator enumerator = Enum.GetValues(typeof(FleetType)).GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 FleetType fleetType = (FleetType)((int)enumerator.get_Current());
                 if (fleetType != FleetType.CombinedFleet)
                 {
                     this._listShipTex.Add(base.get_transform().FindChild(string.Format("{0}Ship/Anchor/Object2D", fleetType.ToString())).GetComponent <UITexture>());
                 }
             }
         }
     }
 }
Example #3
0
        private void setShipInfo()
        {
            ShipModel_Attacker torpedoCutInShip = this.getTorpedoCutInShip(this._clsRaigeki, true);

            if (torpedoCutInShip != null)
            {
                this._listShipTex.get_Item(0).mainTexture = ShipUtils.LoadTexture(torpedoCutInShip);
                this._listShipTex.get_Item(0).MakePixelPerfect();
                this._listShipTex.get_Item(0).get_transform().set_localPosition(Util.Poi2Vec(new ShipOffset(torpedoCutInShip.GetGraphicsMstId()).GetShipDisplayCenter(torpedoCutInShip.DamagedFlg)));
            }
            ShipModel_Attacker torpedoCutInShip2 = this.getTorpedoCutInShip(this._clsRaigeki, false);

            if (torpedoCutInShip2 != null)
            {
                this._listShipTex.get_Item(1).mainTexture = ShipUtils.LoadTexture(torpedoCutInShip2);
                this._listShipTex.get_Item(1).MakePixelPerfect();
                this._listShipTex.get_Item(1).get_transform().set_localPosition(ShipUtils.GetShipOffsPos(torpedoCutInShip2, MstShipGraphColumn.CutIn));
            }
            this._iList = this.getAnimationList(torpedoCutInShip, torpedoCutInShip2);
        }