示例#1
0
 void OnEnable()
 {
     spawnPoses[0] = playerPositions[0].position;
     spawnPoses[1] = playerPositions[1].position;
     InputManager.OnDeviceDetached += OnDeviceDetached;
     keyboardListener = PlayerActions.CreateWithKeyboardBindings();
     joystickListener = PlayerActions.CreateWithJoystickBindings();
 }
示例#2
0
 void OnEnable()
 {
     InputManager.OnDeviceDetached += OnDeviceDetached;
     keyboardListener = PlayerActions.CreateWithKeyboardBindings();
     joystickListener = PlayerActions.CreateWithJoystickBindings();
 }