public void AddFoundLabel(LableClassE thing, string model, string id, string id2, string debstr, Rect rect, Vector3 pt, Vector3 rot, Vector3 vel, string locname, string comment, Color color, float width) { var nlab = new LabelEntry(thing, model, id, id2, debstr, rect, pt, rot, vel, locname, comment, color, width); if (thing == LableClassE.person) { Enum.TryParse <PersonMan.empStatusE>(id2, true, out var stat); if (!GetEnabled(stat)) { return; // don't add lablel } } foundLabelList.Add(nlab); }
public void AddFoundLabel(Vehicle vehicle, Rect rect, Vector3 pt, Vector3 rot, Vector3 vel, string locname, string comment, Color color, float width) { var nlab = new LabelEntry(vehicle, rect, pt, rot, vel, locname, comment, color, width); foundLabelList.Add(nlab); }