public bool DestroyObject(GameObject go) { var resObj = ActiveObjects.FirstOrDefault(x => x.SourceObject == go); if (resObj != null) { ActiveObjects.Remove(resObj); return(true); } return(false); }
public ReplayGameObject Find(GameObject go) { ReplayGameObject result = ActiveObjects.FirstOrDefault(x => x.SourceObject == go); return(result); }
public ReplayGameObject Find(int objectId) { ReplayGameObject result = ActiveObjects.FirstOrDefault(x => x.Id == objectId); return(result); }