HelloWorld.js

 1 window.Global = {
 2     gint: 168,
 3 };
 4 cc.Class({
 5     extends: cc.Component,
 6 
 7     properties: {
 8         label: {
 9             default: null,
10             type: cc.Label
11         },
12         // defaults, set visually when attaching this script to the Canvas
13         text: 'Hello, World!'
14     },
15 
16     // use this for initialization
17     onLoad: function () {
18         this.label.string = this.text;
19 
20     },
21 
22     // called every frame
23     update: function (dt) {
24 
25     },
26 });
HelloWorld.js

相关文章:

  • 2022-01-07
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-12-25
  • 2021-07-02
  • 2021-07-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2021-12-10
相关资源
相似解决方案