/**
* Author:W
* Node节点的常用即时动作【继承自cc.ActionInstant】:指立即执行的动作。参照表如下:
* cc.show 立即显示
* cc.hide 立即隐藏
* cc.toggleVisibility 显示和隐藏状态切换
* cc.removeSelf 从父节点移除自己
* cc.flipX x轴翻转
* cc.flipY y轴翻转
* cc.place 放置在目标位置
*
* cc.callFunc 执行回调函数
*
* cc.targetedAction 用已有动作和一个新的目标节点创建动作
*/
cc.Class({
extends: cc.Component,
properties: {
// foo: {
// // ATTRIBUTES:
// default: null, // The default value will be used only when the component attaching
// // to a node for the first time
// type: cc.SpriteFrame, // optional, default is typeof default
// serializable: true, // optional, default is true
// },
// bar: {
// get () {
// return this._bar;
// },
// set (value) {
// this._bar = value;
// }
// },
},
// LIFE-CYCLE CALLBACKS:
// onLoad () {},
start () {
},
// update (dt) {},
});
Action常见的即时动作API
最新推荐文章于 2025-01-24 10:31:54 发布