public override void Init(TaskModeMgr mgr, GameObject playerGo) { m_FightArrowType = FightTaskUiType.KillApointMonster; m_OriCount = m_KillCount; m_WaveMgr = Global.gApp.CurScene.GetWaveMgr(); base.Init(mgr, playerGo); }
public override void Init(TaskModeMgr mgr, GameObject playerGo) { m_FightArrowType = FightTaskUiType.Empty; gameObject.SetActive(false); m_Player = Global.gApp.CurScene.GetMainPlayerComp(); base.Init(mgr, playerGo); }
public override void Init(TaskModeMgr mgr, GameObject playerGo) { m_WaveMgr = Global.gApp.CurScene.GetWaveMgr(); m_FightArrowType = FightTaskUiType.Empty; base.Init(mgr, playerGo); if (m_Waves.Count == 0) { int[] waveIds = Global.gApp.CurScene.GetPassData().waveID; m_Waves.Capacity = waveIds.Length; foreach (int id in waveIds) { m_Waves.Add(id); } } m_AllWave = new List <Wave>(m_Waves.Count); foreach (int waveId in m_Waves) { Wave wave = m_WaveMgr.GetWavesById(waveId); if (wave != null) { m_AllWave.Add(wave); } } RegisterListener(); }
public override void Init(TaskModeMgr mgr, GameObject playerGo) { base.Init(mgr, playerGo); string tips = Global.gApp.gGameData.GetTipsInCurLanguage(m_TargetTipsId[0]); m_Tips = tips; }
public override void Init(TaskModeMgr mgr, GameObject playerGo) { m_FightArrowType = FightTaskUiType.CollectProp; gameObject.SetActive(false); base.Init(mgr, playerGo); m_NpcProp = GetComponentInChildren <NpcProp>(); m_NpcProp.gameObject.GetComponent <Collider2D>().enabled = false; }
public virtual void Init(TaskModeMgr mgr, GameObject playerGo) { m_PlayerTsf = playerGo.transform; m_TaskModeMgr = mgr; m_TaskState = TaskState.Wait; m_InNormalPass = Global.gApp.CurScene.IsNormalPass(); m_OriCountDownTime = m_CountDownTime; Global.gApp.gMsgDispatcher.Broadcast <int, FightTaskUiType>(MsgIds.CreateTaskIcon, m_OrderIndex, m_FightArrowType); }
public override void Init(TaskModeMgr mgr, GameObject playerGo) { m_FightArrowType = FightTaskUiType.CollectProp; gameObject.SetActive(false); base.Init(mgr, playerGo); BaseProp[] props = GetComponentsInChildren <BaseProp>(); foreach (BaseProp prop in props) { m_Props.Add(prop.gameObject); prop.GetComponent <Collider2D>().enabled = false; } m_TargetPropCount = props.Length; }
public override void Init(TaskModeMgr mgr, GameObject playerGo) { m_FightArrowType = FightTaskUiType.CollectProp; base.Init(mgr, playerGo); if (m_PlotTipsId.Count >= 4) { string tips = Global.gApp.gGameData.GetTipsInCurLanguage(m_PlotTipsId[3]); m_Tips = tips; } m_TriggerNode = transform.Find("TriggerNode"); m_PropNode = transform.Find("NormalProp").gameObject; m_PropEffectNode = transform.Find("NormalPropEffect").gameObject; m_CurProp = m_PropNode.GetComponent <BaseProp>(); SetTargetTsf(m_PropNode.transform); }
public override void Init(TaskModeMgr mgr, GameObject playerGo) { m_FightArrowType = FightTaskUiType.Empty; gameObject.SetActive(false); base.Init(mgr, playerGo); }
public override void Init(TaskModeMgr mgr, GameObject playerGo) { m_FightArrowType = FightTaskUiType.KillApointMonster; base.Init(mgr, playerGo); }
public override void Init() { base.Init(); CreateColliderMap(); m_PlayerMgr = new PlayerMgr(); CreateMainPlayer(); if (m_SceneType == SceneType.NormalScene) { Global.gApp.gCamCompt.GetComponentInChildren <MoveToBoss>().Reset(); base.InitCamera("Prefabs/MapData/Camera/MainCamera"); QualitySettings.shadowDistance = 35; InitBornNodeInfo(); AddTipNpc(40); } else if (m_SceneType == SceneType.CarScene) { Global.gApp.gCamCompt.transform.position = Vector3.zero; Global.gApp.gCamCompt.GetComponentInChildren <MoveToBoss>().Reset(); Global.gApp.gCamCompt.enabled = false; base.InitCamera("Prefabs/MapData/Camera/CarCamera2"); QualitySettings.shadowDistance = 50; } else { Global.gApp.gCamCompt.GetComponentInChildren <MoveToBoss>().Reset(); QualitySettings.shadowDistance = 50; Global.gApp.gCamCompt.transform.position = Vector3.zero; Global.gApp.gCamCompt.enabled = false; base.InitCamera("Prefabs/MapData/Camera/CarCamera3"); } Global.gApp.gUiMgr.OpenPanel(Wndid.FightPanel); Global.gApp.gUiMgr.OpenPanel(Wndid.RewardEffectUi); m_PropMgr = new PropMgr(); m_WaveMgr = new WaveMgr(m_PassData, m_MainPlayer); // lastInit m_TaskModeMgr = new TaskModeMgr(m_MapGo.transform, m_MainPlayer, m_PassData); m_TaskModeMgr.BeginTask(); //m_GamePlay.Init(m_PassData, this, m_MapGo,m_MainPlayer.transform); //m_GamePlay.BroadMsg(); DarkEffect de = m_MainCamera.GetComponent <DarkEffect>(); if (de != null) { de.enabled = (m_PassData.limitView != 0); if (de.enabled) { Global.gApp.gMsgDispatcher.Broadcast <GameObject, bool, int>(MsgIds.FocusGameObject, m_MainPlayer, true, 355); } } if (m_PassData.enableVIT != 0) { Global.gApp.gMsgDispatcher.Broadcast <string, string, float>(MsgIds.AddFightUICountItem, "PlayerEnergyProp", "PlayerEnergyProp", 10); } if (m_SceneType != SceneType.CarScene) { Global.gApp.gGameCtrl.EffectCache.CacheEffect(EffectConfig.DeadEffect, 20); } else { Global.gApp.gGameCtrl.EffectCache.CacheEffect(EffectConfig.DeadEffect, 5); Global.gApp.gGameCtrl.EffectCache.CacheEffect(EffectConfig.DeadEffect1, 20); } InitSpecialSceneSpeed(); }
public override void Init(TaskModeMgr mgr, GameObject playerGo) { m_FightArrowType = FightTaskUiType.ArrivePoint; base.Init(mgr, playerGo); }