| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- cc.Class({
- extends: cc.Component,
- properties: {
- },
- ctor: function () {
- },
- onLoad () {
- },
- start () {
- },
-
- onDestroy()
- {
- },
- playShow()
- {
- this.node.active = true
- var actionTo = cc.moveBy(0.3, cc.v2(-1226, 0));
- var actionTo1 = cc.moveBy(0.3, cc.v2(103, 0));
- this.gamesNode.runAction(actionTo)
- this.plane.runAction(actionTo1)
- },
- playEnd(target)
- {
- var finished = cc.callFunc(function() {
- this.node.active = false;
- if (target) {
- target.show()
- }
- }, this, null);
- var actionTo = cc.sequence(cc.moveBy(0.3, cc.v2(1226, 0)),finished);
- var actionTo1 = cc.moveBy(0.3, cc.v2(-103, 0));
- this.gamesNode.runAction(actionTo)
- this.plane.runAction(actionTo1)
- }
-
- });
|