mirror of
				https://github.com/flame-engine/flame.git
				synced 2025-10-31 00:48:47 +08:00 
			
		
		
		
	Introduce updateTree (#1158)
* Introduce updateTree * Update tests * Fix update for game-in-game situations * Add dartdoc to updateTree
This commit is contained in:
		| @ -52,7 +52,6 @@ class MyCollidable extends PositionComponent | ||||
|  | ||||
|   @override | ||||
|   void update(double dt) { | ||||
|     super.update(dt); | ||||
|     if (_isWallHit) { | ||||
|       removeFromParent(); | ||||
|       return; | ||||
|  | ||||
| @ -89,7 +89,6 @@ class AnimatedComponent extends SpriteAnimationComponent | ||||
|  | ||||
|   @override | ||||
|   void update(double dt) { | ||||
|     super.update(dt); | ||||
|     position += velocity * dt; | ||||
|   } | ||||
|  | ||||
|  | ||||
| @ -121,7 +121,6 @@ abstract class MyCollidable extends PositionComponent | ||||
|  | ||||
|   @override | ||||
|   void update(double dt) { | ||||
|     super.update(dt); | ||||
|     if (_isDragged) { | ||||
|       return; | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Lukas Klingsbo
					Lukas Klingsbo