MainController.Awake C# (CSharp) 메소드

Awake() 공개 메소드

public Awake ( ) : void
리턴 void
    void Awake()
    {
        DontDestroyOnLoad(transform.gameObject);
        if (instance)
            Destroy(gameObject);
        instance = this;
        domainsRect = new Rect(Screen.width - 250, Screen.height - 200, 250, 500);
        sitesRect = new Rect(0, Screen.height/2 - 200, 250, 500);

        //Application.LoadLevel(1);
        SceneManager.LoadScene(1);
    }