private void ReceivePlayerAttack(ShootDto dto) { if (dto == null) { return; } Dispatch(AreaCode.FIGHT, FightEvent.FIGHT_DO_ATTACK, dto.Account); }
void Awake() { Bind(FightEvent.FIGHT_DO_ATTACK, FightEvent.FIGHT_SET_FIREINTERVAL, FightEvent.FIGHT_RESET_FIREINTERVAL, FightEvent.FIGHT_SYNC_ARMSTYPS); FirePoint = this.transform.Find("FirePoint"); curBullet = new BulletBase(); damageMesg = new DamageMesg(); effectMesg = new EffectMesg(); shootDto = new ShootDto(); }