initial commit
This commit is contained in:
13
Shared/Behaviours/LinearRotator.cs
Normal file
13
Shared/Behaviours/LinearRotator.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user