reformat code + level load events
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user