mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Merge pull request #145 from jwu/master
move template to editor/template
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.SceneAsset",
|
||||
"scene": {
|
||||
"__id__": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Scene",
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Canvas",
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Canvas",
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_fitWidth": false,
|
||||
"_fitHeight": true
|
||||
}
|
||||
]
|
||||
@@ -1,16 +0,0 @@
|
||||
cc.Class {
|
||||
extends: cc.Component
|
||||
|
||||
properties: {
|
||||
# foo:
|
||||
# default: null
|
||||
# type: cc
|
||||
# serializable: true # [optional], default is true
|
||||
# visible: true # [optional], default is true
|
||||
# displayName: 'Foo' # [optional], default is property name
|
||||
# readonly: false # [optional], default is false
|
||||
}
|
||||
|
||||
update: (dt) ->
|
||||
# do your update here
|
||||
}
|
||||
@@ -1,25 +0,0 @@
|
||||
cc.Class({
|
||||
extends: cc.Component,
|
||||
|
||||
properties: {
|
||||
// foo: {
|
||||
// default: null,
|
||||
// url: cc.Texture2D, // optional, default is typeof default
|
||||
// serializable: true, // optional, default is true
|
||||
// visible: true, // optional, default is true
|
||||
// displayName: 'Foo', // optional
|
||||
// readonly: false, // optional, default is false
|
||||
// },
|
||||
// ...
|
||||
},
|
||||
|
||||
// use this for initialization
|
||||
onLoad: function () {
|
||||
|
||||
},
|
||||
|
||||
// called every frame
|
||||
update: function (dt) {
|
||||
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user