SCLifeCycleMono.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using UnityEngine;
  2. namespace SC.XR.Unity {
  3. public abstract class SCLifeCycleMono : MonoBehaviour, ISCLifeCycle {
  4. public virtual void OnSCAwake() {
  5. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCAwake", this);
  6. }
  7. public virtual void OnSCEnable() {
  8. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCEnable", this);
  9. }
  10. public virtual void OnSCStart() {
  11. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCStart", this);
  12. }
  13. public virtual void OnSCUpdate() {
  14. //DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCUpdate", this);
  15. }
  16. public virtual void OnSCLateUpdate() {
  17. //DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCLateUpdate", this);
  18. }
  19. public virtual void OnSCFuncitonWaitForEndOfFrame() {
  20. //DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCFuncitonWaitForEndOfFrame", this);
  21. }
  22. public virtual void OnSCDisable() {
  23. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCDisable", this);
  24. }
  25. public virtual void OnSCDestroy() {
  26. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCDestroy", this);
  27. }
  28. }
  29. }