예제 #1
0
 public void destroyActors()
 {
     root.remove();
     foreach (KeyValuePair <string, CActor> kvp in actors)
     {
         kvp.Value.remove();
     }
 }
예제 #2
0
        private void _destroyActors(bool hardDelete = true)
        {
            root.remove();
            root = null;


            foreach (KeyValuePair <string, CActor> kvp in actors)
            {
                if (hardDelete)
                {
                    Map.CMapManager.removeFromActorRegistry(kvp.Value);
                }

                kvp.Value.remove();
            }
            actors.Clear();
            Map.CMapManager.removeComponent(this);
        }