Пример #1
0
        public bool DestroyObject(GameObject go)
        {
            var resObj = ActiveObjects.FirstOrDefault(x => x.SourceObject == go);

            if (resObj != null)
            {
                ActiveObjects.Remove(resObj);
                return(true);
            }

            return(false);
        }
Пример #2
0
        public ReplayGameObject Find(GameObject go)
        {
            ReplayGameObject result = ActiveObjects.FirstOrDefault(x => x.SourceObject == go);

            return(result);
        }
Пример #3
0
        public ReplayGameObject Find(int objectId)
        {
            ReplayGameObject result = ActiveObjects.FirstOrDefault(x => x.Id == objectId);

            return(result);
        }