scrolling + proper anchoring
This commit is contained in:
@@ -20,35 +20,35 @@ namespace Game
|
||||
public override void OnAwake()
|
||||
{
|
||||
base.OnAwake();
|
||||
/*
|
||||
|
||||
onExit.Triggered += () =>
|
||||
{
|
||||
if (Console.IsSafeToQuit)
|
||||
Engine.RequestExit();
|
||||
};
|
||||
|
||||
rootActor = Actor.GetChild(0);*/
|
||||
rootActor = Actor.GetChild(0);
|
||||
}
|
||||
|
||||
public override void OnDestroy()
|
||||
{
|
||||
/*base.OnDestroy();
|
||||
base.OnDestroy();
|
||||
|
||||
onExit.Dispose();*/
|
||||
onExit.Dispose();
|
||||
}
|
||||
|
||||
public override void OnStart()
|
||||
{
|
||||
/*var initialEulerAngles = Actor.Orientation.EulerAngles;
|
||||
var initialEulerAngles = Actor.Orientation.EulerAngles;
|
||||
viewPitch = initialEulerAngles.X;
|
||||
viewYaw = initialEulerAngles.Y;
|
||||
viewRoll = initialEulerAngles.Z;*/
|
||||
viewRoll = initialEulerAngles.Z;
|
||||
}
|
||||
|
||||
Vector3 wishVelocity = new Vector3(0);
|
||||
public override void OnFixedUpdate()
|
||||
{
|
||||
/*if (Console.IsOpen)
|
||||
if (Console.IsOpen)
|
||||
return;
|
||||
|
||||
var camera = rootActor.GetChild<Camera>();
|
||||
@@ -87,12 +87,12 @@ namespace Game
|
||||
rigidBody.LinearVelocity += accel;
|
||||
//rigidBody.LinearVelocity = wishVelocity;
|
||||
//rigidBody.LinearVelocity /= Time.DeltaTime;
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
public override void OnUpdate()
|
||||
{
|
||||
/*float xAxis = InputManager.GetAxis("Mouse X");
|
||||
float xAxis = InputManager.GetAxis("Mouse X");
|
||||
float yAxis = InputManager.GetAxis("Mouse Y");
|
||||
if (xAxis != 0.0f || yAxis != 0.0f)
|
||||
{
|
||||
@@ -110,7 +110,7 @@ namespace Game
|
||||
|
||||
camera.Transform = camTrans;
|
||||
rootActor.Transform = rootTrans;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user