예제 #1
0
        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);
            }
        }
예제 #2
0
        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();
        }