private void InitializeInput() { _actionHandler?.Dispose(); _actionHandler = new ActionHandler(InputActionMapUrl, InputActionMapName); //Movement _actionHandler.AddHandler("moveforward", OnMoveForward); _actionHandler.AddHandler("moveback", OnMoveBack); _actionHandler.AddHandler("moveright", OnMoveRight); _actionHandler.AddHandler("moveleft", OnMoveLeft); //Mouse movement _actionHandler.AddHandler("mouse_rotateyaw", OnMoveMouseX); _actionHandler.AddHandler("mouse_rotatepitch", OnMoveMouseY); //Actions _actionHandler.AddHandler("shoot", OnFireWeaponPressed); _actionHandler.AddHandler("aim", OnAimWeaponPressed); }
public void Initialize() { PluginManager.Register <BonusPlugin>(); PluginManager.Register <CommissionPlugin>(); ActionHandler.AddHandler <OnShowOwnerName>(Handler); }