BaseBehaviour.cs 575 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using UnityEngine;
  3. public class BaseBehaviour : MonoBehaviour
  4. {
  5. public new GameObject gameObject
  6. {
  7. get
  8. {
  9. GameObject result;
  10. if ((result = this._gameObject) == null)
  11. {
  12. result = (this._gameObject = base.gameObject);
  13. }
  14. return result;
  15. }
  16. }
  17. public new Transform transform
  18. {
  19. get
  20. {
  21. Transform result;
  22. if ((result = this._transform) == null)
  23. {
  24. result = (this._transform = base.transform);
  25. }
  26. return result;
  27. }
  28. }
  29. private GameObject _gameObject;
  30. private Transform _transform;
  31. }