14 lines
		
	
	
		
			257 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			257 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using Engine.Core;
 | 
						|
 | 
						|
namespace MyUniverse.Shared.Behaviours;
 | 
						|
 | 
						|
public class LinearRotator : Behaviour2D, IRotator, IUpdate
 | 
						|
{
 | 
						|
    private float speed = 20f;
 | 
						|
 | 
						|
    public void Update()
 | 
						|
    {
 | 
						|
        Transform.Rotation += Universe.Time.DeltaTime * speed;
 | 
						|
    }
 | 
						|
}
 |