public void ReturnToLoiter() { attackingKingdomID = -1; taskLocation = Vector2Int.zero; taskLocationVector = Vector2.zero; tileType = TileTypes.Grass; task = UnitTasks.Nothing; prevTask = UnitTasks.Nothing; building = null; enemy = null; enemyBuilding = null; }
public void SetPreviousTask(bool switchThem = false) { UnitTasks tempTask = task; if (switchThem) { task = prevTask; prevTask = task; } else { task = prevTask; prevTask = UnitTasks.Nothing; } }