Created
March 15, 2012 16:17
-
-
Save karlwestin/2045042 to your computer and use it in GitHub Desktop.
m.OnceBehavior
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(m) { | |
m.OnceBehavior = function() { | |
m.OnceBehavior.superclass.constructor.call(this); | |
}; | |
m.OnceBehavior.prototype = { | |
setForTime : function(time, actor) { | |
if(this.oldtime && this.oldtime > time) | |
this.callback(); | |
this.oldtime = time; | |
} | |
}; | |
extend(m.OnceBehavior, CAAT.GenericBehavior); | |
})(MOVE); |
Author
karlwestin
commented
Mar 15, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment