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.

56 lines
815 B

  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. [RequireComponent (typeof(Rigidbody))]
  6. public class BuoyantObject : WaterObject {
  7. [Tooltip ("How fast object will raise into the ")]
  8. public float BouancyValue = 5;
  9. //rigidbody attached to GameObject
  10. private Rigidbody rb;
  11. #region Unity Functions
  12. void Awake() {
  13. rb = GetComponent<Rigidbody>();
  14. }
  15. #endregion Unity Functions
  16. public override void OnWaterStay() {
  17. }
  18. public override void OnWaterEnter() {
  19. throw new NotImplementedException();
  20. }
  21. public override void OnWaterExit() {
  22. throw new NotImplementedException();
  23. }
  24. /// <summary>
  25. ///
  26. /// </summary>
  27. public void BuoyancyCalc() {
  28. }
  29. }