瀏覽代碼

Fixed Dock not calling child update

Jean-David Moisan 3 年之前
父節點
當前提交
a33839852e
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Source/Dock.cs

+ 5 - 0
Source/Dock.cs

@@ -45,6 +45,11 @@ namespace Apos.Gui {
                 Child.UpdateInput(gameTime);
                 Child.UpdateInput(gameTime);
             }
             }
         }
         }
+        public override void Update(GameTime gameTime) {
+            if (Child != null) {
+                Child.Update(gameTime);
+            }
+        }
         public override void Draw(GameTime gameTime) {
         public override void Draw(GameTime gameTime) {
             if (Child != null) {
             if (Child != null) {
                 Child.Draw(gameTime);
                 Child.Draw(gameTime);