14 lines
319 B
C#
14 lines
319 B
C#
using System;
|
|
using Microsoft.Xna.Framework.Input;
|
|
using Syntriax.Engine.Core;
|
|
|
|
namespace Pong.Behaviours;
|
|
|
|
public class MovementMouseBehaviour : BehaviourOverride
|
|
{
|
|
protected override void OnUpdate()
|
|
{
|
|
GameObject.Transform.Position = Mouse.GetState().Position.ToVector2D().ApplyDisplayScale();
|
|
}
|
|
}
|