2
0
Эх сурвалжийг харах

Fixed Dock not calling child update

Jean-David Moisan 3 жил өмнө
parent
commit
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);
             }
         }
+        public override void Update(GameTime gameTime) {
+            if (Child != null) {
+                Child.Update(gameTime);
+            }
+        }
         public override void Draw(GameTime gameTime) {
             if (Child != null) {
                 Child.Draw(gameTime);