This commit is contained in:
董刚
2021-11-30 15:53:02 +08:00
parent 8c5820bf13
commit f9caa3928b
2 changed files with 9 additions and 32 deletions

View File

@@ -27,11 +27,11 @@
"_active": true,
"_components": [],
"_prefab": {
"__id__": 111
"__id__": 110
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 112
"__id__": 111
},
"_id": "ba0b085f-f8d5-40b0-9964-2fd25728d707"
},
@@ -3690,24 +3690,8 @@
"gui": {
"__id__": 93
},
"a": {
"__id__": 110
},
"_id": "c5PY2uoV1Fub3p/gK8ZOCH"
},
{
"__type__": "cc.animation.AnimationController",
"_name": "",
"_objFlags": 0,
"node": null,
"_enabled": true,
"__prefab": null,
"graph": {
"__uuid__": "986922ff-74f1-4ffe-9c70-ff65910341ae",
"__expectedType__": "cc.animation.AnimationGraph"
},
"_id": "bc5wMgJetD36EEzHynH4Z0"
},
{
"__type__": "cc.PrefabInfo",
"fileId": "ba0b085f-f8d5-40b0-9964-2fd25728d707"
@@ -3715,16 +3699,16 @@
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 113
"__id__": 112
},
"shadows": {
"__id__": 114
"__id__": 113
},
"_skybox": {
"__id__": 115
"__id__": 114
},
"fog": {
"__id__": 116
"__id__": 115
}
},
{

View File

@@ -2,9 +2,9 @@
* @Author: dgflash
* @Date: 2021-07-03 16:13:17
* @LastEditors: dgflash
* @LastEditTime: 2021-11-18 10:45:38
* @LastEditTime: 2021-11-30 15:51:42
*/
import { animation, game, setDisplayStats, _decorator } from 'cc';
import { game, setDisplayStats, _decorator } from 'cc';
import { DEBUG } from 'cc/env';
import { engine } from './core/Engine';
import { LayerType, UIConfig } from './core/gui/layer/LayerManager';
@@ -31,14 +31,11 @@ export var UICF: { [key: number]: UIConfig } = {
export class Main extends Root {
rootSystem!: RootSystem;
@property({ type: animation.AnimationController })
a: animation.AnimationController | null = null;
start() {
if (DEBUG)
setDisplayStats(true);
game.setFrameRate(60);
game.frameRate = 60;
this.rootSystem = new RootSystem();
this.rootSystem.init();
@@ -63,10 +60,6 @@ export class Main extends Root {
// 模块视图
a.show(this.node);
});
setTimeout(() => {
this.a!.setValue('dir', 1);
}, 3000);
}
update(dt: number) {