Exemplo n.º 1
0
 public static MoonSoundManager GetInstance()
 {
     if (instance == null)
     {
         instance = (MoonSoundManager)FindObjectOfType(typeof(MoonSoundManager));
         if (instance == null)
         {
             Debug.Log("Sound MGR 애러");
         }
     }
     return(instance);
 }
Exemplo n.º 2
0
    private void Awake()
    {
        if (instance != null && instance != this)
        {
            DestroyImmediate(gameObject);
        }
        else
        {
            instance = this;
        }

        AwakeAfter();
    }