private static bool AcceptsMessage(string text, LookTargets lookTargets) { if (text.NullOrEmpty()) { return(false); } for (int i = 0; i < liveMessages.Count; i++) { if (liveMessages[i].text == text && liveMessages[i].startingFrame == RealTime.frameCount && LookTargets.SameTargets(liveMessages[i].lookTargets, lookTargets)) { return(false); } } return(true); }
private static bool AcceptsMessage(string text, LookTargets lookTargets) { bool result; if (text.NullOrEmpty()) { result = false; } else { for (int i = 0; i < Messages.liveMessages.Count; i++) { if (Messages.liveMessages[i].text == text && Messages.liveMessages[i].startingFrame == RealTime.frameCount && LookTargets.SameTargets(Messages.liveMessages[i].lookTargets, lookTargets)) { return(false); } } result = true; } return(result); }