Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

Unified Diff: sky/sdk/example/game/lib/node.dart

Issue 1215413002: First pass on action animations for sprites (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/sdk/example/game/lib/node.dart
diff --git a/sky/sdk/example/game/lib/node.dart b/sky/sdk/example/game/lib/node.dart
index 51bb6239e01149bf56628caeb073dec73d3487fa..a1680b5fab28d1840d965ab5ef26333d2426af13 100644
--- a/sky/sdk/example/game/lib/node.dart
+++ b/sky/sdk/example/game/lib/node.dart
@@ -59,6 +59,15 @@ class Node {
List<Node>_children = [];
+ ActionController _actions;
+
+ ActionController get actions {
+ if (_actions == null) {
+ _actions = new ActionController();
+ }
+ return _actions;
+ }
+
// Constructors
/// Creates a new [Node] without any transformation.

Powered by Google App Engine
This is Rietveld 408576698