Exemple #1
0
 private void ShipLevel()
 {
     if (key.IsRightDown())
     {
         int level = ship.Level;
         level = (int)Util.RangeValue(level + 1 * mag, 1f, 150f);
         for (int i = ship.Level; i <= level; i++)
         {
             ship.AddExp(ship.Exp_Next);
         }
         ShipInit();
     }
 }
 private void ShipLevelUp(int AddLevel)
 {
     if (ShipName[1].text != "NONE")
     {
         int       ship_mem_id = Convert.ToInt32(MemID.text);
         ShipModel ship        = StrategyTopTaskManager.GetLogicManager().UserInfo.GetShip(ship_mem_id);
         for (int i = 0; i < AddLevel; i++)
         {
             ship.AddExp(ship.Exp_Next);
         }
         ShipLevel.text = ship.Level.ToString();
     }
 }