34 lines
853 B
TypeScript
34 lines
853 B
TypeScript
/*
|
|
* @Author: dgflash
|
|
* @Date: 2022-02-12 13:38:13
|
|
* @LastEditors: dgflash
|
|
* @LastEditTime: 2022-08-17 12:36:31
|
|
*/
|
|
|
|
import { EventTouch, 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 { smc } from '../../common/SingletonModuleComp';
|
|
import { Role } from '../Role';
|
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass("RoleViewUIControllerComp")
|
|
@ecs.register('RoleViewUIController', false)
|
|
export class RoleViewUIControllerComp extends CCComp {
|
|
|
|
private target: Role = null!;
|
|
|
|
start() {
|
|
this.target = smc.own;
|
|
}
|
|
|
|
onDestroy() {
|
|
this.ent.remove(RoleViewUIControllerComp);
|
|
super.onDestroy();
|
|
}
|
|
|
|
reset(): void {
|
|
|
|
}
|
|
} |