コード例 #1
0
ファイル: PCInputManager.cs プロジェクト: striter/VDefend
 protected override void Awake()
 {
     base.Awake();
     KeyBindings.CreatePresetBinding(enum_BindingsName.Up, enum_PressStatus.Both, KeyCode.W);
     KeyBindings.CreatePresetBinding(enum_BindingsName.Down, enum_PressStatus.Both, KeyCode.S);
     KeyBindings.CreatePresetBinding(enum_BindingsName.Left, enum_PressStatus.Both, KeyCode.A);
     KeyBindings.CreatePresetBinding(enum_BindingsName.Right, enum_PressStatus.Both, KeyCode.D);
     KeyBindings.CreatePresetBinding(enum_BindingsName.Aim, enum_PressStatus.Both, KeyCode.Mouse1);
     KeyBindings.CreatePresetBinding(enum_BindingsName.Fire, enum_PressStatus.Both, KeyCode.Mouse0);
     KeyBindings.CreatePresetBinding(enum_BindingsName.Reload, enum_PressStatus.Down, KeyCode.R);
     KeyBindings.CreatePresetBinding(enum_BindingsName.Sprint, enum_PressStatus.Both, KeyCode.LeftShift);
     KeyBindings.CreatePresetBinding(enum_BindingsName.Throw, enum_PressStatus.Down, KeyCode.G);
     KeyBindings.CreatePresetBinding(enum_BindingsName.Interact, enum_PressStatus.Down, KeyCode.E);
     KeyBindings.CreatePresetBinding(enum_BindingsName.Jump, enum_PressStatus.Down, KeyCode.Space);
     KeyBindings.CreatePresetBinding(enum_BindingsName.FlashLight, enum_PressStatus.Down, KeyCode.F);
 }