12345678910111213141516171819202122232425262728293031 |
- import ResSpine from "../../frameWork/compment/ResSpine";
- import UEBase from "../../frameWork/compment/UEBase";
- import { HcType } from "../../shared/hc/PtlHcInfo";
- const { ccclass, property } = cc._decorator;
- export interface I_HomeRoleData {
- type: HcType;
- id: number;
- }
- @ccclass
- export default class UEHomeRole extends UEBase {
- static readonly BundleKey: string = "gridMap";
- static readonly PrefabUrl: string = "UEHomeRole";
- static readonly CLS: string = "UEHomeRole";
- @property(ResSpine)
- private node_spine: ResSpine = null!;
- data: I_HomeRoleData = null!;
- Init(data: I_HomeRoleData) {
- if (data.type == HcType.user) {
- } else if (data.type == HcType.monster) {
- this.node_spine.setSpineData('spine', `mon/10001`, null, false, 'stand', true);
- }
- }
- }
|