// -------- -------- -------- -------- -------- -------- -------- -------- -------- /. // Methods from events // -------- -------- -------- -------- -------- -------- -------- -------- -------- /. private void OnInputStarted(InputAction.CallbackContext ctx, ClientEntity client, int inputId) { var index = Array.IndexOf(m_actionInputIds, inputId); for (int i = 0; i != m_Group.Length; i++) { var clientAttach = m_Group.AttachData[i]; if (!clientAttach.AttachedTo.Equals(client)) { continue; } var inputData = m_Group.InputData[i]; if (index == 0) { inputData.KeyAction1 = P4Default_EEntityInputRythmActionState.Pressed; } if (index == 1) { inputData.KeyAction2 = P4Default_EEntityInputRythmActionState.Pressed; } if (index == 2) { inputData.KeyAction3 = P4Default_EEntityInputRythmActionState.Pressed; } if (index == 3) { inputData.KeyAction4 = P4Default_EEntityInputRythmActionState.Pressed; } m_Group.InputData[i] = inputData; } m_RythmSystem.AddClientInputEvent(index, client.GetGroup()); }