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