Fries
65ef70f583
the scaling manager now controls when the various objects are active so stuff won't be null because of stuff running too fast or slow.
15 lines
308 B
C#
15 lines
308 B
C#
namespace Pong.Scripts.Managers;
|
|
|
|
public partial class BasePaddle: RigidBody2D
|
|
{
|
|
[Export] protected double MoveSpeed;
|
|
|
|
internal ScalingManager ScalingManager;
|
|
protected Vector2? NewPosition;
|
|
internal bool Running;
|
|
|
|
internal void SetNewPosition(Vector2 newPosition)
|
|
{
|
|
NewPosition = newPosition;
|
|
}
|
|
}
|