Esempio n. 1
0
    void Start()
    {
        TextureOption.SetActive(false);

        brush         = Camera.GetComponent <Es.InkPainter.Sample.MousePainter>().brush;
        adaptionBrush = brush.BrushTexture.name;

        GetComponent <Image>().sprite = Resources.Load <Sprite>("Alpha/" + adaptionBrush);
        GetComponent <Button>().onClick.AddListener(OnClickButton);
    }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        GetComponent <Button>().onClick.AddListener(clickPrefab);
        brush = cam.GetComponent <Es.InkPainter.Sample.MousePainter>().brush;

        colorPanel.SetActive(false);

        randomSW      = transform.GetChild(1).GetComponent <Toggle>();
        randomSW.isOn = false;
    }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     GetComponent <Button>().onClick.AddListener(clickPrefab);
     brush = cam.GetComponent <Es.InkPainter.Sample.MousePainter>().brush;
 }
Esempio n. 4
0
 void Start()
 {
     brush = Camera.GetComponent <Es.InkPainter.Sample.MousePainter>().brush;
     GetComponent <Button>().onClick.AddListener(OnClickButton);
 }