public void WaterInput(int waterType) { if (waterType == 0) { roomMenu.localPlayer.properties.HealthWaterNum--; Debug.Log("use HealthWater"); } else if (waterType == 1) { roomMenu.localPlayer.properties.ManaWaterNum--; Debug.Log("use ManaWater"); } playerInfo.UseWaterInput(waterType); playerAnimator.UseWaterInput(waterType); }