private void OnNewClient(ClientEntity clientId) { var inputManager = clientId.GetInputManager(); var inputData = clientId.GetWorld().SetContainer(new ClientContainer()); for (int i = 0; i != 4; i++) { var id = m_actionInputIds[i]; var inputAction = inputManager.CreateInputAction(id); inputAction.HackyStartCancel = true; inputAction.Started += OnInputStarted; inputAction.Cancelled += OnInputEnded; } }