Пример #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);
    }
Пример #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;
    }
Пример #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;
 }
Пример #4
0
 void Start()
 {
     brush = Camera.GetComponent <Es.InkPainter.Sample.MousePainter>().brush;
     GetComponent <Button>().onClick.AddListener(OnClickButton);
 }