public CharDefence(CharHandler handler) { _charHandler = handler; _MPData = BattleManager.GetInst().GetMPData(); _iLoseHpTemp = 0; _iLoseHpSingleTemp = 0; }
private void Awake() { _gameObject = gameObject; BattleCam.rect = ApplicationConst.sceneCamRect; _inst = this; SceneLoader.LoadAddScene(m_sAddSceneName); _gameObject.AddComponent <HUDTextMgr>(); _gameObject.AddComponent <BattleSceneTimer>(); m_CharInScene = new BattleCharInScene(); m_TriggerManager = new BattleTriggerManager(); m_BattleScene = _gameObject.AddComponent <BattleScene>(); m_MPData = new MPData("Power1"); BattlePoolTrans.gameObject.AddComponent <BattleScenePool>(); HUDTextMgr.GetInst().HUDParent = HUDParentTran; HUDTextMgr.GetInst().HUDSkillParent = HUDSkillParentTran; }