reformat code + level load events

This commit is contained in:
2022-05-05 18:52:53 +03:00
parent 8762138fe3
commit fe443b9f50
38 changed files with 6380 additions and 6408 deletions

View File

@@ -1,25 +1,19 @@
using System;
using System.Runtime;
using FlaxEditor.Content.Settings;
using FlaxEngine;
using Console = Cabrito.Console;
using FlaxEngine;
namespace Game
{
public class CameraSpring : Script
{
private Vector3 targetOffset;
private bool lastGround;
private Vector3 lastPosition;
public float speed = 240f;
public float percY;
private Actor playerActor;
private Actor viewModelHolder;
private PlayerMovement playerMovement;
private bool lastGround;
public float speed = 240f;
private Vector3 targetOffset;
private Actor viewModelHolder;
public override void OnStart()
{
@@ -62,7 +56,9 @@ namespace Game
}
}
else
{
UpdatePosition(position);
}
lastPosition = position;
lastGround = playerMovement.onGround;