Exemplo n.º 1
0
    public void Start()
    {
#if UNITY_WEBGL && !UNITY_EDITOR
        _ = ServerServiceHelper.CreateClient <WebglGameClient>();
#else
        _ = ServerServiceHelper.CreateClient <TcpGameClient>();
#endif

        lazyScriptHandler = FindObjectOfType <LazyScriptHandler>();
        paintBoard        = FindObjectOfType <PaintCanvas>();
        ServerServiceHelper.RegisterChatCallBacks(RecieveChatMessage, UserJoinedMessage);
        ServerServiceHelper.RegisterGameCallBacks(RecievePixelUpdate);
    }