Пример #1
0
        public void ChangeScene <T>(string ModID, string Path) where T : Node
        {
            T NewNode = NodeUtil.NewNode <T>(ModID, Path);

            if (GetChildCount() != 0)
            {
                GetChild(0).QueueFree();
            }

            AddChild(NewNode, true);

            this.ModID = ModID;
            this.Path  = Path;
        }
Пример #2
0
        public override void _Ready()
        {
            if (ModID != null && Path != null)
            {
                Node NewNode = NodeUtil.NewNode(ModID, Path);

                if (GetChildCount() != 0)
                {
                    GetChild(0).QueueFree();
                }

                AddChild(NewNode, true);
            }
        }