手动控制spine 动画

This commit is contained in:
2024-07-19 17:11:19 +08:00
parent f34018ac59
commit d80f16a0f7
22 changed files with 675 additions and 1221 deletions

View File

@@ -8,7 +8,6 @@
import { Vec3, _decorator } from "cc";
import { ecs } from "../../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS";
import { CCComp } from "../../../../../extensions/oops-plugin-framework/assets/module/common/CCComp";
import Charactor from "../../map/view/map/charactor/Charactor";
import { RoleSpine } from "./RoleSpine";
const { ccclass, property } = _decorator;
@@ -20,12 +19,10 @@ export class RoleViewComp extends CCComp {
/** 角色动画 */
as: RoleSpine = null!;
/** 角色控制器 */
charactor: Charactor = null!;
/** 视图层逻辑代码分离演示 */
onLoad() {
this.as = this.getComponent(RoleSpine);
this.charactor = this.getComponent(Charactor);
}