using System.Collections; using System.Collections.Generic; using UnityEngine; public abstract class WaterObject : MonoBehaviour { /// /// Called when object intersects water plane /// public abstract void OnWaterEnter(GameObject water); /// /// Called while objects stays in water /// public abstract void OnWaterStay(GameObject water,float waveHeight); /// /// Called when object leaves water /// public abstract void OnWaterExit(GameObject water); }