Пример #1
0
    public void Click()
    {
        WaterBar water = GameObject.FindWithTag("Player").GetComponent <WaterBar>();

        water.AddWater(addAmount * Time.deltaTime);
    }
Пример #2
0
 private void Water()
 {
     isWatering = true;
     plant.AddWater(waterGain);
     StartCoroutine(boy.WaterRoutine());
 }