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