init
This commit is contained in:
@@ -0,0 +1,57 @@
|
||||
import { _decorator, Component, Node } from 'cc';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('<%UnderscoreCaseClassName%>')
|
||||
export class <%UnderscoreCaseClassName%> extends Component {
|
||||
start() {
|
||||
|
||||
}
|
||||
|
||||
update(deltaTime: number) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* COMMENTS_GENERATE_IGNORE
|
||||
* Use "COMMENTS_GENERATE_IGNORE" tag if you do not want later created scripts to contain these comments.
|
||||
*
|
||||
* Predefined Variables
|
||||
* You can use predefined variables below to setup your scripting preference. For example, whether to use camel case style.
|
||||
*
|
||||
* <%UnderscoreCaseClassName%>, class name in underscore format, like 'new_component'
|
||||
* <%CamelCaseClassName%>, class name in camel format, like 'NewComponent'
|
||||
* <%Author%>, Who create this file
|
||||
* <%DateTime%>, when create this file
|
||||
* <%FileBasename%>, creating file name with extension
|
||||
* <%FileBasenameNoExtension%>, creating file name without extension
|
||||
* <%URL%>, url of this file in COCOS ASSET URL format
|
||||
* <%ManualUrl%>, url of office help document, like 'https://docs.cocos.com/creator/manual/en/'
|
||||
*
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
@ccclass('<%UnderscoreCaseClassName%>')
|
||||
export class <%UnderscoreCaseClassName%> extends Component {
|
||||
|
||||
// class member could be defined like this.
|
||||
dummy = '';
|
||||
|
||||
// Use 'property' decorator if your want the member to be serializable.
|
||||
@property
|
||||
serializableDummy = 0;
|
||||
|
||||
start () {
|
||||
// Your initialization goes here.
|
||||
}
|
||||
|
||||
update (deltaTime: number) {
|
||||
// Your update function goes here.
|
||||
}
|
||||
|
||||
}
|
||||
*
|
||||
* Learn more about scripting: <%ManualUrl%>scripting/
|
||||
* Learn more about CCClass: <%ManualUrl%>scripting/decorator.html
|
||||
* Learn more about life-cycle callbacks: <%ManualUrl%>scripting/life-cycle-callbacks.html
|
||||
*/
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"__type__": "cc.Asset",
|
||||
"_name": "ts",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": ""
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"__type__": "cc.Material",
|
||||
"_name": "lambert137",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"_effectAsset": {
|
||||
"__uuid__": "f648964e-8d32-41fc-9ac9-7a1e714dd17b",
|
||||
"__expectedType__": "cc.EffectAsset"
|
||||
},
|
||||
"_techIdx": 0,
|
||||
"_defines": [
|
||||
{
|
||||
"DCC_APP_NAME": 5
|
||||
}
|
||||
],
|
||||
"_states": [
|
||||
{
|
||||
"rasterizerState": {},
|
||||
"blendState": {
|
||||
"targets": [
|
||||
{}
|
||||
]
|
||||
},
|
||||
"depthStencilState": {}
|
||||
}
|
||||
],
|
||||
"_props": [
|
||||
{
|
||||
"albedoScale": 0.800000011920929,
|
||||
"mainColor": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"emissiveScale": 1,
|
||||
"emissive": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 0,
|
||||
"g": 0,
|
||||
"b": 0,
|
||||
"a": 255
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"__type__": "cc.ImageAsset",
|
||||
"content": {
|
||||
"fmt": "0",
|
||||
"w": 0,
|
||||
"h": 0
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 70 B |
@@ -0,0 +1,193 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"persistent": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "SM_Prop_HotdogCart_01",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": null,
|
||||
"_children": [
|
||||
{
|
||||
"__id__": 2
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_mobility": 0,
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "SM_Prop_HotdogCart_01",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 3
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 1,
|
||||
"y": 1,
|
||||
"z": 1
|
||||
},
|
||||
"_mobility": 0,
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.MeshRenderer",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 4
|
||||
},
|
||||
"_materials": [
|
||||
{
|
||||
"__uuid__": "3e878e5d-a3b0-42f5-bef3-55e0fccc6cef@5126e",
|
||||
"__expectedType__": "cc.Material"
|
||||
}
|
||||
],
|
||||
"_visFlags": 0,
|
||||
"bakeSettings": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_mesh": {
|
||||
"__uuid__": "3e878e5d-a3b0-42f5-bef3-55e0fccc6cef@e472b",
|
||||
"__expectedType__": "cc.Mesh"
|
||||
},
|
||||
"_shadowCastingMode": 0,
|
||||
"_shadowReceivingMode": 1,
|
||||
"_shadowBias": 0,
|
||||
"_shadowNormalBias": 0,
|
||||
"_reflectionProbeId": -1,
|
||||
"_reflectionProbeBlendId": -1,
|
||||
"_reflectionProbeBlendWeight": 0,
|
||||
"_enabledGlobalStandardSkinObject": false,
|
||||
"_enableMorph": true,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "e8qs/mYmBVIJ9tPQkMUvss"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.ModelBakeSettings",
|
||||
"texture": null,
|
||||
"uvParam": {
|
||||
"__type__": "cc.Vec4",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 0
|
||||
},
|
||||
"_bakeable": false,
|
||||
"_castShadow": false,
|
||||
"_receiveShadow": false,
|
||||
"_recieveShadow": false,
|
||||
"_lightmapSize": 64,
|
||||
"_useLightProbe": false,
|
||||
"_bakeToLightProbe": true,
|
||||
"_reflectionProbeType": 0,
|
||||
"_bakeToReflectionProbe": true
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "05+FTIpaldJ46fxQtzbdmf",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "fdHNWwRJ5aloz4aFccEjm8",
|
||||
"instance": null,
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
}
|
||||
]
|
||||
Binary file not shown.
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"__type__": "cc.Mesh",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": ".bin",
|
||||
"_struct": {
|
||||
"primitives": [
|
||||
{
|
||||
"primitiveMode": 7,
|
||||
"vertexBundelIndices": [
|
||||
0
|
||||
],
|
||||
"indexView": {
|
||||
"offset": 40080,
|
||||
"length": 2808,
|
||||
"count": 1404,
|
||||
"stride": 2
|
||||
}
|
||||
}
|
||||
],
|
||||
"vertexBundles": [
|
||||
{
|
||||
"view": {
|
||||
"offset": 0,
|
||||
"length": 40080,
|
||||
"count": 835,
|
||||
"stride": 48
|
||||
},
|
||||
"attributes": [
|
||||
{
|
||||
"name": "a_position",
|
||||
"format": 32,
|
||||
"isNormalized": false
|
||||
},
|
||||
{
|
||||
"name": "a_normal",
|
||||
"format": 32,
|
||||
"isNormalized": false
|
||||
},
|
||||
{
|
||||
"name": "a_texCoord",
|
||||
"format": 21,
|
||||
"isNormalized": false
|
||||
},
|
||||
{
|
||||
"name": "a_tangent",
|
||||
"format": 44,
|
||||
"isNormalized": false
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"minPosition": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": -0.335134893655777,
|
||||
"y": -0.004625053610652685,
|
||||
"z": -0.20839416980743408
|
||||
},
|
||||
"maxPosition": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.335134893655777,
|
||||
"y": 0.853770911693573,
|
||||
"z": 0.3851086497306824
|
||||
}
|
||||
},
|
||||
"_hash": 3980751419,
|
||||
"_allowDataAccess": true
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"__type__": "cc.Texture2D",
|
||||
"content": {
|
||||
"base": "2,2,0,0,0,0",
|
||||
"mipmaps": [
|
||||
"3e878e5d-a3b0-42f5-bef3-55e0fccc6cef@8ab8f"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user