private void Awake()
 {
     this.colorPicker = FindObjectOfType <ColorPerPlayer>() as ColorPerPlayer;
     if (this.colorPicker == null)
     {
         enabled = false;
     }
     if (photonView.isSceneView)
     {
         enabled = false;
     }
 }
Ejemplo n.º 2
0
 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>();
 }
Ejemplo n.º 4
0
    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>();
    }