Exemple #1
0
        public void Interact()
        {
            ColorSetter colorSetter = this.GetComponent <ColorSetter>();

            if (colorSetter != null)
            {
                colorSetter.SetColorAndBroadcast(new Color(Random.Range(0f, 1f), Random.Range(0f, 1f), Random.Range(0f, 1f)));
            }
        }
Exemple #2
0
 private void Awake()
 {
     pv = this.GetComponent <PhotonView>();
     cs = this.GetComponent <ColorSetter>();
 }