Added NetworkManager
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
public class PlayerInput : UdonSharpBehaviour
|
||||
{
|
||||
public bool active;
|
||||
private GameManager gameController;
|
||||
private GameManager gameManager;
|
||||
Vector2 inputHorizontal;
|
||||
Vector2 inputVertical;
|
||||
float horizontalValue;
|
||||
@@ -18,9 +18,9 @@
|
||||
bool horizontalPriority;
|
||||
VRCPlayerApi player;
|
||||
|
||||
public void Initialize(GameManager gameController)
|
||||
public void Initialize(GameManager gameManager)
|
||||
{
|
||||
this.gameController = gameController;
|
||||
this.gameManager = gameManager;
|
||||
inputHorizontal = Vector2.zero;
|
||||
inputVertical = Vector2.zero;
|
||||
horizontalPriority = false;
|
||||
@@ -35,7 +35,7 @@
|
||||
player.SetRunSpeed(0);
|
||||
player.SetStrafeSpeed(0);
|
||||
|
||||
gameController.JoystickGrabbed();
|
||||
gameManager.JoystickGrabbed();
|
||||
}
|
||||
|
||||
public void Deactivate()
|
||||
@@ -46,7 +46,7 @@
|
||||
player.SetStrafeSpeed(2);
|
||||
active = false;
|
||||
|
||||
gameController.JoystickReleased();
|
||||
gameManager.JoystickReleased();
|
||||
}
|
||||
|
||||
public override void InputJump(bool pressed, UdonInputEventArgs args)
|
||||
@@ -128,6 +128,7 @@
|
||||
// horizontalPriority = true;
|
||||
SetPriority(true);
|
||||
}
|
||||
|
||||
// Debug.Log("Vertical Input Event: " + value + " | Direction: " + direction + " | lastDirection : " + lastDirection);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user