14 lines
335 B
TypeScript
14 lines
335 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 {
|
|
fire() {
|
|
EventManager.Instance.emit(EventEnum.ShootBtnClick)
|
|
}
|
|
|
|
}
|
|
|