Пример #1
0
    public override void ClickAction(int value, I_Resource res)
    {
        ObjectPool ObjectPooling = pManager.getObjectPool();
        ObjectPooling.SetPosition(GenerateNewPosition());
        ObjectPooling.setText("x" + value.ToString());

        res.add(value);

        ObjectPooling.gameObject.SetActive(true);
    }
Пример #2
0
    public override void ClickAction(int value, I_Resource res)
    {
        value = CheckTreeCapacity(value);

        ObjectPool ObjectPooling = pManager.getObjectPool();
        ObjectPooling.SetPosition(GenerateNewPosition());
        ObjectPooling.setText("x" + value.ToString());
        ((Tree)Build).Capacity.subCapacty(value);

        res.add(value);

        ObjectPooling.gameObject.SetActive(true);
    }
Пример #3
0
 public virtual void ClickAction_NoPoolingAction(int value, I_Resource res)
 {
     res.add(value);
 }