示例#1
0
 /// <summary>
 /// ユニット追加
 /// </summary>
 /// <param name="unit"></param>
 public void AddUnit(Unit.BaseAvator unit)
 {
     unit.ControlId = unitNums;
     if (unit.CurrentUnitType == Unit.UnitType.playerTower)
     {
         playerTower = unit;
     }
     else if (unit.CurrentUnitType == Unit.UnitType.enemyTower)
     {
         enemyTower = unit;
     }
     unitList.Add(unit);
     unitNums++;
 }
示例#2
0
 /// <summary>
 /// 対象ユニットに攻撃します
 /// </summary>
 /// <param name="fromUnit">From unit.</param>
 /// <param name="toUnit">To unit.</param>
 public void AttackTo(Unit.BaseAvator fromUnit, Unit.BaseAvator toUnit)
 {
 }