Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- class BetterBehaviour : MonoBehaviour
- {
- private GameObject _gameObject;
- public new GameObject gameObject
- {
- get
- {
- if (!_gameObject) {
- _gameObject = base.gameObject;
- }
- return _gameObject;
- }
- }
- // etc
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement