/// <summary> /// Creates new instance of HUD warning /// </summary> /// <param name="detectionMethod">Warning's detection method</param> /// <param name="soundWarning">Sound warning</param> /// <param name="textWarning">Text warning</param> /// <param name="priority">Warning's priority</param> public MyHudWarning(MyWarningDetectionMethod detectionMethod, MyHudSoundWarning soundWarning, MyHudTextWarning textWarning, int priority) { m_warningDetectionMethod = detectionMethod; m_soundWarning = soundWarning; m_textWarning = textWarning; Priority = priority; m_warningDetected = false; }