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

26 lines
453 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Photon.Pun;
public class ColorChanger : MonoBehaviourPun
{
public List<GameObject> changeObjects;
private void Awake()
{
if (!photonView.IsMine)
{
gameObject.SetActive(false);
}
}
public void ChangeColorPun()
{
photonView.RPC("ChangeColor", RpcTarget.AllBuffered);
}
}