Advertisement
DaDogeDevelopment

Color script

Sep 30th, 2023
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | Source Code | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using Photon.VR;
  5. public class Colorer : MonoBehaviour
  6. {
  7. public Color YourColor;
  8.     // Start is called before the first frame update
  9.     void Start()
  10.     {
  11.        
  12.     }
  13.  
  14.     // Update is called once per frame
  15.     void Update()
  16.     {
  17.        
  18.     }
  19.     void OnTriggerEnter()
  20.     {
  21.     Color myColour = YourColor;
  22. PhotonVRManager.SetColour(myColour);
  23.    
  24.    
  25.     }
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement