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); }
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); }
public virtual void ClickAction_NoPoolingAction(int value, I_Resource res) { res.add(value); }