/// <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++; }
/// <summary> /// 対象ユニットに攻撃します /// </summary> /// <param name="fromUnit">From unit.</param> /// <param name="toUnit">To unit.</param> public void AttackTo(Unit.BaseAvator fromUnit, Unit.BaseAvator toUnit) { }