void OnEventInput(CUserInput.EInput _eInput, bool _bDown) { switch (_eInput) { case CUserInput.EInput.Primary: { if (ActiveTool != null && ActiveTool.GetComponent <CToolInterface>() != null) { ActiveTool.GetComponent <CToolInterface>().SetPrimaryActive(_bDown); } } break; case CUserInput.EInput.Secondary: { if (ActiveTool != null && ActiveTool.GetComponent <CToolInterface>() != null) { ActiveTool.GetComponent <CToolInterface>().SetSecondaryActive(_bDown); } } break; default: Debug.LogError("Unknown error"); break; } }