Beispiel #1
0
    public override void OnStartLocalPlayer()
    {
        base.OnStartLocalPlayer();

        _arLocationSync = GetComponent <ARLocationSync>();

        // カスタムプレーヤーの情報を送信する
        // 必要な情報を追加 (例 色, プレイたーの画像, 個人設定, etc...)
        locationSent = false;
    }
Beispiel #2
0
    public override void OnStartLocalPlayer()
    {
        base.OnStartLocalPlayer();

        _arLocationSync          = GetComponent <ARLocationSync> ();
        _exampleARSessionManager = FindObjectOfType <ExampleARSessionManager>();


        // Send custom player info
        // This is an example of sending additional information to the server that might be needed in the lobby (eg. colour, player image, personal settings, etc.)

        myColour = UnityEngine.Random.ColorHSV(0, 1, 1, 1, 1, 1);
        CmdSetCustomPlayerInfo(myColour);
        locationSent = false;
    }
    public override void OnStartLocalPlayer()
    {
        base.OnStartLocalPlayer();
        CmdMakeCnt(transform.position, transform.rotation);

        _arLocationSync          = GetComponent <ARLocationSync>();
        _exampleARSessionManager = FindObjectOfType <ExampleARSessionManager>();


        // カスタムプレーヤーの情報を送信する
        // 必要な情報を追加 (例 色, プレイたーの画像, 個人設定, etc...)

        myColour = UnityEngine.Random.ColorHSV(0, 1, 1, 1, 1, 1);
        CmdSetCustomPlayerInfo(myColour);
        locationSent = false;
    }