Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
    public void SetPreviousTask(bool switchThem = false)
    {
        UnitTasks tempTask = task;

        if (switchThem)
        {
            task     = prevTask;
            prevTask = task;
        }
        else
        {
            task     = prevTask;
            prevTask = UnitTasks.Nothing;
        }
    }