예제 #1
0
            public bool Update(Cell c)
            {
                bool contains  = _actualBounds.Contains(c.position);
                bool contained = _oldBounds.Contains(c.position);

                if (contained && !contains)
                {
                    return(c.RemoveDynamicObstacle(_parent));
                }
                else if (contains && !contained)
                {
                    return(c.AddDynamicObstacle(_parent));
                }

                return(false);
            }