예제 #1
0
        public void RemovePhysical(Physics phy)
        {

            phy.setMap(null);
            lock (_objects)
            {
                _objects.Remove(phy);
            }
        }
예제 #2
0
        public void AddPhysical(Physics phy)
        {

            phy.setMap(this);
            lock (_objects)
            {
                _objects.Add(phy);
            }
            phy.StartMoving();
        }