Пример #1
0
 // Use this for initialization
 void Start()
 {
     script = hand.GetComponent <RotateHand>();
 }
Пример #2
0
    void OnMouseDown()
    {
        RotateHand hand = GameObject.Find("ClockHand").GetComponent <RotateHand> ();

        hand.rotate = !hand.rotate;
    }