2022-12-08 21:14:02 +08:00

12 lines
325 B
TypeScript

import { _decorator, Component, Node } from "cc";
import { EventEnum } from "../Enum";
import EventManager from "../Global/EventManager";
const { ccclass, property } = _decorator;
@ccclass("ShootManager")
export class ShootManager extends Component {
shoot() {
EventManager.Instance.emit(EventEnum.WeaponShoot);
}
}