/// <summary> /// To bne call when person dies /// </summary> /// <param name="id"></param> public void RemoveMeFromSystem(string id) { var wIndex = WaitList.FindIndex(a => a.Id == id); if (wIndex > -1) { WaitList.RemoveAt(wIndex); } var sIndex = OnSystemNow1.FindIndex(a => a.Id == id); if (sIndex > -1) { OnSystemNow1.RemoveAt(sIndex); } }
/// <summary> /// To bne call when person dies /// </summary> /// <param name="id"></param> public void RemoveMeFromSystem(string id) { var wIndex = WaitList.FindIndex(a => a.Id == id); if (wIndex > -1) { //Debug.Log("remove from waitL:"+id); WaitList.RemoveAt(wIndex); } var sIndex = OnSystemNow1.FindIndex(a => a.Id == id); if (sIndex > -1) { //Debug.Log("remove from systemNow:" + id); OnSystemNow1.RemoveAt(sIndex); } }