Beispiel #1
0
    public Army CreateArmy(int armySize)
    {
        GameObject armyObj = GameObject.Instantiate(armyPrefab);
        Army       army    = armyObj.GetComponent <Army>();

        army.AddStrategies(strategies);
        army.SetArmySize(armySize);
        army.captureTile.AddListener(CaptureTile);
        AddArmy(army);

        return(army);
    }