Exemple #1
0
    void Awake()
    {
        DontDestroyOnLoad(mainCamera.gameObject);


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

        _StarEngineInit();

        mClient = new GameClient();
        mClient.OnAwake();
    }