private void Awake() { this.colorPicker = FindObjectOfType <ColorPerPlayer>() as ColorPerPlayer; if (this.colorPicker == null) { enabled = false; } if (photonView.isSceneView) { enabled = false; } }
private void Awake() { this.colorPicker = FindObjectOfType<ColorPerPlayer>() as ColorPerPlayer; if (this.colorPicker == null) { enabled = false; } if (photonView.isSceneView) { enabled = false; } }
public void Awake() { if (ColorPerPlayerApply.colorPickerCache == null) { ColorPerPlayerApply.colorPickerCache = Object.FindObjectOfType <ColorPerPlayer>(); } if (ColorPerPlayerApply.colorPickerCache == null) { base.enabled = false; } if (base.photonView.isSceneView) { base.enabled = false; } this.rendererComponent = base.GetComponent <Renderer>(); }
public void Awake() { if (colorPickerCache == null) { colorPickerCache = FindObjectOfType<ColorPerPlayer>() as ColorPerPlayer; } if (colorPickerCache == null) { enabled = false; } if (photonView.isSceneView) { enabled = false; } this.rendererComponent = GetComponent<Renderer>(); }
public void Awake() { if (colorPickerCache == null) { colorPickerCache = FindObjectOfType <ColorPerPlayer>() as ColorPerPlayer; } if (colorPickerCache == null) { enabled = false; } if (photonView.isSceneView) { enabled = false; } this.rendererComponent = GetComponent <Renderer>(); }