예제 #1
0
        public void Update()
        {
            for (int i = 0; i < AlteredObjects.Count; i++)
            {
                GameObject obj = AlteredObjects[i];

                UpdateObject(obj, true);

                UpdateObject(obj);
            }

            AlteredObjects.Clear();
        }
예제 #2
0
        public void AddObject(GameObject obj, int space = 0)
        {
            if (space != 0)
            {
                ClearArea(obj, space);
            }

            if (obj.Movable)
            {
                MovableObjects.Add(obj);
            }

            else
            {
                StaticObjects.Add(obj);
            }

            AlteredObjects.Add(obj);
        }