Ejemplo n.º 1
0
    public override void Perform()
    {
        if (GameController.players[owner].ownedUnitCount < 5)
        {
            hut.Perform();
        }

        sink.Perform();
        storage.DepositRecource(sink);
        storage.Perform();

        // Gain a unit
        if (storage.resources[0] >= 100)
        {
            hut.Perform();
            storage.resources[0] -= 100;
        }
    }