예제 #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);
        }