コード例 #1
0
    // Use this for initialization
    void Start()
    {
        if (arenaManager != null)
        {
            playerZone    = arenaManager.GetPlayerZone(PlayerID);
            camController = Camera.main.GetComponent <CameraController>();
            Transform focusPoint = playerZone.transform.GetChild(1);
            camController.SetTarget(focusPoint);

            // Test récupération de la zone de jeu du joueur
            Vector3 offset = new Vector3(0f, 7f, 0f);
            PhotonNetwork.Instantiate("TestCube", playerZone.transform.position + offset, Quaternion.identity, 0);
        }

        //si on est pas le masterclient, on ne fait rien
        if (!PhotonNetwork.isMasterClient && PhotonNetwork.connected)
        {
            return;
        }
        //Turn();
    }