Files
DCDC25-TwinCity/Assets/Scripts/MapInteractions/WaterLevelControlUI.cs
2025-05-19 02:28:52 +02:00

24 lines
549 B
C#

using UnityEngine;
public class WaterLevelControlUI : MonoBehaviour
{
[SerializeField] private MapSyncController mapSyncController;
[SerializeField] public float changeAmount = 0.01f;
public void IncreaseWaterLevel()
{
if (mapSyncController != null)
{
mapSyncController.RPC_IncreaseWaterLevel(changeAmount);
}
}
public void DecreaseWaterLevel()
{
if (mapSyncController != null)
{
mapSyncController.RPC_DecreaseWaterLevel(changeAmount);
}
}
}