DeltaVR/Assets/OtherControls.cs
2022-06-29 14:45:17 +03:00

28 lines
545 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon.Pun;
public class OtherControls : MonoBehaviourPunCallbacks
{
public List<MonoBehaviour> toDisable = new List<MonoBehaviour>();
// Start is called before the first frame update
void Start()
{
if (!photonView.IsMine)
{
foreach (var t in toDisable)
{
t.enabled = false;
}
}
}
// Update is called once per frame
void Update()
{
}
}