dd
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
import { Color, Component, EventTouch, sp, Vec3, _decorator } from "cc";
|
||||
import { LayerUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/LayerUtil";
|
||||
import { smc } from "../../common/SingletonModuleComp";
|
||||
// import Charactor, { CharactorDirection, CharactorState } from "../../map/view/map/charactor/Charactor";
|
||||
import RoleSpineAnimator from "./RoleSpineAnimator";
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
@@ -21,11 +20,9 @@ export class RoleSpine extends Component {
|
||||
animator: RoleSpineAnimator = null!;
|
||||
|
||||
private spine!: sp.Skeleton;
|
||||
// private charactor!: Charactor;
|
||||
|
||||
onLoad() {
|
||||
// 角色控制组件
|
||||
// this.charactor = this.addComponent(Charactor)!;
|
||||
|
||||
this.initAnimator();
|
||||
// this.setSkin("magic");
|
||||
@@ -42,17 +39,6 @@ export class RoleSpine extends Component {
|
||||
|
||||
|
||||
|
||||
// setState(value: CharactorState): void {
|
||||
// switch (value) {
|
||||
// case CharactorState.Idle:
|
||||
// this.idle();
|
||||
// break;
|
||||
// case CharactorState.Run:
|
||||
// this.walk();
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
|
||||
setSkin(value: string): void {
|
||||
console.log("RoleSpine setSkin", value);
|
||||
this.spine.setSkin(value);
|
||||
|
||||
Reference in New Issue
Block a user