示例#1
0
    private void Awake()
    {
        SetupGame = GetComponent <SetupGame>();
        SetupGame.StartCoroutine("GetWordsFromTheServerAndStartFirstLevel");

        if (instance == null)
        {
            instance = this;
        }

        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);
    }