mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
@@ -93,7 +93,7 @@ cc.ActionManager = cc._Class.extend(/** @lends cc.ActionManager# */{
|
||||
* When the target is paused, the queued actions won't be 'ticked'.
|
||||
* @method addAction
|
||||
* @param {cc.Action} action
|
||||
* @param {_ccsg.Node} target
|
||||
* @param {cc.Node} target
|
||||
* @param {Boolean} paused
|
||||
*/
|
||||
addAction:function (action, target, paused) {
|
||||
|
||||
@@ -100,11 +100,7 @@ cc.HashTimerEntry = cc.hashSelectorEntry = function (timers, target, timerIndex,
|
||||
_t.hh = hh;
|
||||
};
|
||||
|
||||
/**
|
||||
* Light weight timer
|
||||
* @class Timer
|
||||
* @extends _Class
|
||||
*/
|
||||
|
||||
cc.Timer = cc._Class.extend(/** @lends cc.Timer# */{
|
||||
_scheduler: null,
|
||||
_elapsed:0.0,
|
||||
@@ -115,15 +111,7 @@ cc.Timer = cc._Class.extend(/** @lends cc.Timer# */{
|
||||
_delay:0,
|
||||
_interval:0.0,
|
||||
|
||||
/**
|
||||
* @method getInterval
|
||||
* @return {Number} returns interval of timer
|
||||
*/
|
||||
getInterval : function(){return this._interval;},
|
||||
/**
|
||||
* @method setInterval
|
||||
* @param {Number} interval set interval in seconds
|
||||
*/
|
||||
setInterval : function(interval){this._interval = interval;},
|
||||
|
||||
setupTimerWithInterval: function(seconds, repeat, delay){
|
||||
@@ -143,11 +131,6 @@ cc.Timer = cc._Class.extend(/** @lends cc.Timer# */{
|
||||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* cc.Timer's Constructor
|
||||
* @method cc.Timer
|
||||
* @return {cc.Timer}
|
||||
*/
|
||||
ctor:function () {
|
||||
this._scheduler = null;
|
||||
this._elapsed = -1;
|
||||
@@ -159,11 +142,6 @@ cc.Timer = cc._Class.extend(/** @lends cc.Timer# */{
|
||||
this._interval = 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* triggers the timer
|
||||
* @method update
|
||||
* @param {Number} dt delta time
|
||||
*/
|
||||
update:function (dt) {
|
||||
if (this._elapsed === -1) {
|
||||
this._elapsed = 0;
|
||||
|
||||
Reference in New Issue
Block a user