Пример #1
0
    public override void Interact()
    {
        for (int i = 0; i < players.Count; i++)
        {
            Debug.Log("Deposit Wood");
            unit u = players[i].GetComponent <unit>();

            ResourceManager.Instance.DepositResource(u.unitStorage.GetResourceType(), u.unitStorage.DepositStorage(), u.playerTypes);
            u.ResumeLastTask();
        }
    }