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