void Start() { com = Camera.main.GetComponent <COM>(); draw = GameObject.Find("Tube").GetComponent <DrawTest>(); if (target == null) { target = GameObject.Find("Kursor").transform; } }
void Start() { slider = GetComponent <Slider>(); kursor = GameObject.FindGameObjectWithTag("Kursor").GetComponent <Kursor3D>(); movement = GameObject.FindGameObjectWithTag("Kursor").GetComponent <PoruszanieKursorem>(); draw = GameObject.Find("Tube").GetComponent <DrawTest>(); slider.value = draw.actualRadius; PoruszanieKursorem.BlockMovement(); }