Exemple #1
0
        private void Awake()
        {
            Instance = this;

            Logger.SetLogMethod(Debug.Log);
            Logger.SetWarnMethod(Debug.LogWarning);
            Logger.SetErrorMethod(Debug.LogError);

            if (startOnAwake)
            {
                ConnectClient(serverAddress);
            }
        }
        private void Awake()
        {
            Instance = this;

            Logger.SetLogMethod(Debug.Log);
            Logger.SetWarnMethod(Debug.LogWarning);
            Logger.SetErrorMethod(Debug.LogError);

            if (startOnAwake)
            {
                StartServer();
            }
        }