TouchCharacterSlot.ts 405 B

1234567891011
  1. import { _decorator, math} from 'cc';
  2. import { TouchMgr } from './TouchMgr';
  3. import { CharacterSlotMgr } from './CharacterSlotMgr';
  4. const { ccclass, property } = _decorator;
  5. @ccclass('TouchCharacterSlot')
  6. export class TouchCharacterSlot extends TouchMgr {
  7. func(pos: math.Vec2): void {
  8. this.node.parent.getChildByName("CharacterSlot").getComponent(CharacterSlotMgr).removeCardImg(pos);
  9. }
  10. }