void Start() { //Debug.Log("Awake"); if (ModuleBullet == null) { ModuleBullet = FindObjectOfType(typeof(Module_Bullet)) as Module_Bullet; } mGM = GameMain.Singleton; GameMain.EvtInputKey += Handle_InputKey; GameMain.EvtPlayerGunChanged += Handle_PlayerGunChanged; GameMain.EvtPlayerGunFired += Handle_GunFire; HitProcessor.Evt_Hit += Handle_FishBulletHit; GameMain.EvtMainProcess_StartGame += Handle_StartGame; mFishLocker = new Player_FishLocker[Defines.MaxNumPlayer]; mLockedTarget = new Fish[Defines.MaxNumPlayer]; }
private void Start() { //Debug.Log("Awake"); if (ModuleBullet == null) { ModuleBullet = FindObjectOfType(typeof(Module_Bullet)) as Module_Bullet; } mGM = GameMain.Singleton; var gdata = App.GetGameData <FishGameData>(); gdata.EvtPlayerGunChanged += Handle_PlayerGunChanged; gdata.EvtPlayerGunFired += Handle_GunFire; HitProcessor.Evt_Hit += Handle_FishBulletHit; gdata.EvtMainProcessStartGame += Handle_StartGame; mFishLocker = new Player_FishLocker[Defines.MaxNumPlayer]; mLockedTarget = new Fish[Defines.MaxNumPlayer]; }
void Start() { //Debug.Log("Awake"); if (ModuleBullet == null) ModuleBullet = FindObjectOfType(typeof(Module_Bullet)) as Module_Bullet; mGM = GameMain.Singleton; GameMain.EvtInputKey += Handle_InputKey; GameMain.EvtPlayerGunChanged += Handle_PlayerGunChanged; GameMain.EvtPlayerGunFired += Handle_GunFire; HitProcessor.Evt_Hit += Handle_FishBulletHit; GameMain.EvtMainProcess_StartGame += Handle_StartGame; mFishLocker = new Player_FishLocker[Defines.MaxNumPlayer]; mLockedTarget = new Fish[Defines.MaxNumPlayer]; }