Example #1
0
 void Start()
 {
     com  = Camera.main.GetComponent <COM>();
     draw = GameObject.Find("Tube").GetComponent <DrawTest>();
     if (target == null)
     {
         target = GameObject.Find("Kursor").transform;
     }
 }
Example #2
0
    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();
    }