2022-11-27 23:23:47 +08:00
|
|
|
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 {
|
2022-12-01 22:26:41 +08:00
|
|
|
shoot() {
|
|
|
|
EventManager.Instance.emit(EventEnum.WeaponShoot)
|
2022-11-27 23:23:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|