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); } }
public void InitBrokenType() { this._lastBorkenType = UserShip.GetBrokenTypeOf(this.hp, this.hpMax); }
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"; } }