1
0
forked from cgvr/DeltaVR

deltavr multiplayer 2.0

This commit is contained in:
Toomas Tamm
2023-05-08 15:56:10 +03:00
parent 978809a002
commit 07b9b9e2f4
10937 changed files with 2968397 additions and 1521012 deletions

View File

@@ -0,0 +1,31 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class PlayerText : MonoBehaviour
{
public Transform lookCamera;
private void Start()
{
//photonView.RPC("ChangeText", RpcTarget.AllBuffered);
GameObject[] players = GameObject.FindGameObjectsWithTag("MainCamera");
foreach(GameObject player in players)
{
// if (player.transform.parent.parent.gameObject.GetPhotonView().IsMine)
// {
// lookCamera = player.transform;
// }
}
}
private void Update()
{
transform.LookAt(lookCamera);
}
}