Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (selecting)
     {
         Inside.Rotate(0f, 0f, rotateFastInside * Time.deltaTime);
         Middle.Rotate(0f, 0f, rotateFastMiddle * Time.deltaTime);
         Outside.Rotate(0f, 0f, rotateFastOutside * Time.deltaTime);
     }
     else
     {
         Inside.Rotate(0f, 0f, rotateSpeedInside * Time.deltaTime);
         Middle.Rotate(0f, 0f, rotateSpeedMiddle * Time.deltaTime);
         Outside.Rotate(0f, 0f, rotateSpeedOutside * Time.deltaTime);
     }
 }