Spinner.cs 209 B

123456789101112131415
  1. using System;
  2. using AtomicEngine;
  3. public class Spinner : CSComponent
  4. {
  5. [Inspector]
  6. float speed = 1.0f;
  7. void Update(float timeStep)
  8. {
  9. Node.Yaw(speed * timeStep * 75.0f);
  10. }
  11. }