示例#1
0
    void Start()
    {
        ColorPickedPrefab = GameObject.Find("ColorPicker");
        if (!ColorPickedPrefab)
        {
            Debug.Log("Can't Load ColorPickerdPrefab");
        }

        MousePointerIMG = GameObject.Find("MousePointer");
        mpScript        = GameObject.Find("Main Camera").GetComponent <Es.InkPainter.Sample.MousePainter>();

        Cursor.visible            = false;
        mpScript.brush.brushScale = 0.01f;

        brushColor = mpScript.brush.Color;
        mpScript.brush.setBrushScatter(0.1f);

        // brushSize
        Slider.transform.GetChild(0).GetComponent <Slider>().value = 10f;
        brushSize = 10f;
    }
示例#2
0
 private void Awake()
 {
     Instance = this;
 }