Updated level and replay
This commit is contained in:
@@ -25,6 +25,7 @@ namespace InterfaceOff.WorldScene
|
||||
|
||||
private float MousePitch;
|
||||
private float MouseYaw = 90;
|
||||
private int CurrentFrameIndex;
|
||||
|
||||
private List<PlayerFrameInfo> FrameInfo = new();
|
||||
|
||||
@@ -48,16 +49,19 @@ namespace InterfaceOff.WorldScene
|
||||
|
||||
Debug.Log("Dumped");
|
||||
}
|
||||
|
||||
|
||||
private void FixedUpdate()
|
||||
{
|
||||
PlayerFrameInfo current = new()
|
||||
{
|
||||
Position = transform.position,
|
||||
Rotation = new Vector2(MousePitch, MouseYaw)
|
||||
Rotation = new Vector2(MousePitch, MouseYaw),
|
||||
ShootGun = Input.GetMouseButton(0),
|
||||
FrameIndex = CurrentFrameIndex
|
||||
};
|
||||
|
||||
FrameInfo.Add(current);
|
||||
CurrentFrameIndex++;
|
||||
}
|
||||
|
||||
private void Update()
|
||||
|
||||
Reference in New Issue
Block a user