2022-12-08 21:14:02 +08:00
|
|
|
import { _decorator, Component, Node } from "cc";
|
|
|
|
import { EventEnum } from "../Enum";
|
|
|
|
import EventManager from "../Global/EventManager";
|
2022-11-27 23:23:47 +08:00
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
2022-12-08 21:14:02 +08:00
|
|
|
@ccclass("ShootManager")
|
2022-11-27 23:23:47 +08:00
|
|
|
export class ShootManager extends Component {
|
2022-12-08 21:14:02 +08:00
|
|
|
shoot() {
|
|
|
|
EventManager.Instance.emit(EventEnum.WeaponShoot);
|
|
|
|
}
|
2022-11-27 23:23:47 +08:00
|
|
|
}
|