상속: MonoBehaviour
예제 #1
0
 static BackMainScene()
 {
     GameObject prefab = Resources.Load(path) as GameObject;
     GameObject go = GameObject.Instantiate(prefab);
     DontDestroyOnLoad(go);
     instance = go.AddComponent<BackMainScene>();
 }
예제 #2
0
    static BackMainScene()
    {
        GameObject prefab = Resources.Load(path) as GameObject;
        GameObject go     = GameObject.Instantiate(prefab);

        DontDestroyOnLoad(go);
        instance = go.AddComponent <BackMainScene>();
    }