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