public void ShowSmoke(ShipBrokenType brokenType)
 {
     if (brokenType == ShipBrokenType.middleBroken)
     {
         this.smokeObj = GameObjectUtil.InstantiateItemAsChildOf(this.smoke1Prefab, base.gameObject);
     }
     else if (brokenType == ShipBrokenType.bigBorken)
     {
         this.smokeObj = GameObjectUtil.InstantiateItemAsChildOf(this.smoke2Prefab, base.gameObject);
     }
 }
Example #2
0
 public void InitBrokenType()
 {
     this._lastBorkenType = UserShip.GetBrokenTypeOf(this.hp, this.hpMax);
 }
Example #3
0
        public static string getShipBarStringv(ShipBrokenType sbt)
        {
            switch (sbt)
            {

                case ShipBrokenType.middleBroken:
                    return "res/png/bigbg/yellowbarv.png";
                case ShipBrokenType.bigBorken:
                    return "res/png/bigbg/redbarv.png";
                case ShipBrokenType.noBroken:
                default:
                    return "res/png/bigbg/greenbarv.png";
            }
        }
 public void InitBrokenType()
 {
     this._lastBorkenType = UserShip.GetBrokenTypeOf(this.hp, this.hpMax);
 }