Exemplo n.º 1
0
 void PressSpace()
 {
     if (Input.GetKeyDown(KeyCode.Space))
     {
         GameDataManager.AddWater(10000);
     }
 }
Exemplo n.º 2
0
    //this method is called from Flutter
    void AddWaterLevel(string message)
    {
        int value = Int32.Parse(message);

        GameDataManager.AddWater(value);
    }