You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
577 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public abstract class WaterObject : MonoBehaviour {
  5. /// <summary>
  6. /// Called when object intersects water plane
  7. /// </summary>
  8. public abstract void OnWaterEnter(GameObject water);
  9. /// <summary>
  10. /// Called while objects stays in water
  11. /// </summary>
  12. public abstract void OnWaterStay(GameObject water,float waveHeight);
  13. /// <summary>
  14. /// Called when object leaves water
  15. /// </summary>
  16. public abstract void OnWaterExit(GameObject water);
  17. }