Advertisement
Guest User

Untitled

a guest
Apr 30th, 2014
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. class BetterBehaviour : MonoBehaviour
  4. {
  5.     private GameObject _gameObject;
  6.     public new GameObject gameObject
  7.     {
  8.         get
  9.         {
  10.             if (!_gameObject) {
  11.                 _gameObject = base.gameObject;
  12.             }
  13.             return _gameObject;
  14.         }
  15.     }
  16.  
  17.     // etc
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement