mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
@@ -102,7 +102,7 @@ var Transition = cc.Enum({
|
||||
*
|
||||
* // Add an event to the button.
|
||||
* button.node.on(cc.Node.EventType.TOUCH_START, function (event) {
|
||||
* cc.log("This is a callback after the trigger event");
|
||||
* cc.log("This is a callback after the trigger event");
|
||||
* });
|
||||
|
||||
* // You could also add a click event
|
||||
|
||||
@@ -40,7 +40,6 @@ const {ccclass, property} = cc._decorator;
|
||||
@ccclass
|
||||
class NewScript extends cc.Component {
|
||||
@property({
|
||||
default: Direction.Up,
|
||||
type: cc.Enum(Direction) // call cc.Enum
|
||||
})
|
||||
direction: Direction = Direction.Up;
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
*
|
||||
* cc.log('release');
|
||||
*
|
||||
* (好棒棒)<br>
|
||||
* <br>
|
||||
* 如需判断脚本是否运行于指定平台,可以用如下表达式:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user