コード例 #1
0
    void Awake()
    {
        Debug.Assert(Net != null);
        Debug.Assert(CubeServer != null);
        Debug.Assert(CubeClient != null);

        Data = new CubeTransformData();
        Net.RegisterNetworkDataClass <CubeTransformData>(CubeTransformData.ID);

        Net.OnNetworkDataReceived += OnDataReceive;
    }