Exemplo n.º 1
0
 private void OnDestroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
Exemplo n.º 2
0
 private void Start()
 {
     if (!Instance)
     {
         Instance = GuitardHeroGM.Instance;
     }
 }
Exemplo n.º 3
0
 private void Awake()
 {
     if (!Instance)
     {
         Instance = this;
     }
 }
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     if (!guitardHeroGM)
     {
         guitardHeroGM = GuitardHeroGM.Instance;
     }
 }