Esempio n. 1
0
    private void GetResource()
    {
        if (availableToMineResources.Count == 0)
        {
            return;
        }
        int i = Random.Range(0, availableToMineResources.Count);

        wareHouse.AddResource(availableToMineResources[i], 1);
        OnAction("ResourceAdded");
    }