public int GetAttrByIndex(TowerAttrs attr) { switch (attr) { case TowerAttrs.Atk: return Atk; case TowerAttrs.Hp: return Hp; case TowerAttrs.Spd: return Spd; case TowerAttrs.Range: return Range; } return 0; }
public int GetAttrByIndex(TowerAttrs attr) { switch (attr) { case TowerAttrs.Atk: return Atk; case TowerAttrs.Hp: return Hp; case TowerAttrs.Mp: return MpRate; case TowerAttrs.Pp: return PpRate; case TowerAttrs.Lp: return LpRate; } return 0; }