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(); }