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))); } }
private void Awake() { pv = this.GetComponent <PhotonView>(); cs = this.GetComponent <ColorSetter>(); }