public void AddCharacter(CharacterLogic logic) { GameObject obj = GameGOW.Get().ResourceMgr.GetRes("Prefab/CharacterLogic"); CharacterLogicView view = obj.GetComponent <CharacterLogicView>(); view.SetCharacterLogic(logic); obj.transform.parent = m_pZSort; m_dicCharacterView[logic.ID] = view; }
private void OnChangeController(object sender, EventArgs e) { LuaFramework.Util.SendMessageToLua("EventChangeController", e); ChangeControllerEvent chgEvent = e as ChangeControllerEvent; if (chgEvent != null && m_dicCharacterView.ContainsKey(chgEvent.m_iUniqueID)) { CharacterLogicView view = m_dicCharacterView[chgEvent.m_iUniqueID]; m_pCamera.SetFocus(view.transform); } }
private void OnBattleStart(object sender, EventArgs e) { LuaFramework.Util.SendMessageToLua("EventBattleStart"); ChangeControllerEvent chgEvent = e as ChangeControllerEvent; if (chgEvent != null && m_dicCharacterView.ContainsKey(chgEvent.m_iUniqueID)) { CharacterLogicView view = m_dicCharacterView[chgEvent.m_iUniqueID]; m_pCamera.SetFocus(view.transform); } GameGOW.Get().PlayWind(1, 0.0f, true); GameGOW.Get().MapMgr.Wind = 0; //BackgroundParallax.Get().SetCamera(); }