TouchRoleList.ts 339 B

12345678910111213
  1. import { _decorator, math} from 'cc';
  2. import { TouchMgr } from './TouchMgr';
  3. import { RoleList } from './RoleList';
  4. const { ccclass, property } = _decorator;
  5. @ccclass('TouchRoleList')
  6. export class TouchRoleList extends TouchMgr {
  7. func(pos: math.Vec2): void {
  8. this.node.parent.getComponent(RoleList).openShadow(pos);
  9. }
  10. }