SCLifeCycle.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. 
  2. namespace SC.XR.Unity {
  3. public abstract class SCLifeCycle : ISCLifeCycle {
  4. public SCLifeCycle() {
  5. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "创建 ", this);
  6. }
  7. ~SCLifeCycle() {
  8. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "析构", this);
  9. }
  10. public virtual void OnSCAwake() {
  11. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCAwake", this);
  12. }
  13. public virtual void OnSCEnable() {
  14. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCEnable", this);
  15. }
  16. public virtual void OnSCStart() {
  17. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCStart", this);
  18. }
  19. public virtual void OnSCUpdate() {
  20. //DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCUpdate", this);
  21. }
  22. public virtual void OnSCLateUpdate() {
  23. //DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCLateUpdate", this);
  24. }
  25. public virtual void OnSCFuncitonWaitForEndOfFrame() {
  26. //DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCFuncitonWaitForEndOfFrame", this);
  27. }
  28. public virtual void OnSCDisable() {
  29. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCDisable", this);
  30. }
  31. public virtual void OnSCDestroy() {
  32. DebugMy.Log("[HashCode: " + GetHashCode() + "] " + "OnSCDestroy", this);
  33. }
  34. }
  35. }