Exemple #1
0
        private Color whiteColor = Color.white;                       //ffffffff

        public void Init(UIBattleMainData data)
        {
            battleModule = UtilsModuleManager.GetModule(ModuleType.MatchModule) as MatchModule;
            uiData       = data;
            gameRunRealCameraComponent = Game.Scene.GetComponent <GameRunRealCameraComponent>();

            myPlayerUID = battleModule.playerUID;
            horseList   = battleModule.matchInit.funcs.GetHorses();
        }
Exemple #2
0
        public override void Run(string parm)
        {
            GameRunRealCameraComponent gameRunRealCameraComponent = Game.Scene.GetComponent <GameRunRealCameraComponent>();

            if (gameRunRealCameraComponent != null)
            {
                gameRunRealCameraComponent.IgnoreCameraUpdate();
            }
        }
Exemple #3
0
        public override void Run(string parm)
        {
            GameRunRealCameraComponent gameRunRealCameraComponent = Game.Scene.GetComponent <GameRunRealCameraComponent>();

            if (gameRunRealCameraComponent != null)
            {
                gameRunRealCameraComponent.beginWinnerCameraShow();
            }
        }
Exemple #4
0
            public override void Run(string args)
            {
                GameRunRealCameraComponent gameRunRealCameraComponent = Game.Scene.GetComponent <GameRunRealCameraComponent>();

                if (gameRunRealCameraComponent != null)
                {
                    //创建另外一个负责步骤执行
                    gameRunRealCameraComponent.camerMove();
                }
            }
Exemple #5
0
 public override void Run(string parm)
 {
     if (int.TryParse(parm, out int intNO))
     {
         EnumCameraStand            enumCameraStand            = (EnumCameraStand)intNO;
         GameRunRealCameraComponent gameRunRealCameraComponent = Game.Scene.GetComponent <GameRunRealCameraComponent>();
         if (gameRunRealCameraComponent != null)
         {
             gameRunRealCameraComponent.enumCameraStandRand = enumCameraStand;
         }
     }
 }
Exemple #6
0
 public override void Run(string parm)
 {
     if (int.TryParse(parm, out int cameraHorseID))
     {
         MatchModule                matchModule   = UtilsModuleManager.GetModule(ModuleType.MatchModule) as MatchModule;
         ModelHorseView             findHorseView = matchModule.ModelHorseViewSet.Find(x => x.data.Id == cameraHorseID); //gameRunMatchComponent.GetHorseView(cameraHorseID);
         GameRunRealCameraComponent gameRunRealCameraComponent = Game.Scene.GetComponent <GameRunRealCameraComponent>();
         if (gameRunRealCameraComponent != null)
         {
             gameRunRealCameraComponent.currHorseView = findHorseView;
         }
     }
 }
Exemple #7
0
        public void ClientBeginFrameSync()
        {
            Log.Info("接收到帧同步消息,开始Update");
            //为什么要让服务器和客户端各自等4s呢?为什么不统一让服务器等4s,然后直接开始
            matchInit.allowUpdate = true;
            RealStartTime         = DateTime.Now;

            GameRunRealCameraComponent gameRunRealCameraComponent = Game.Scene.GetComponent <ETModel.GameRunRealCameraComponent>();

            if (gameRunRealCameraComponent != null)
            {
                gameRunRealCameraComponent.isRunMotionCamera = true;
            }
            //GameStart().Coroutine();
        }
Exemple #8
0
        public void Clear()
        {
            if (horseHeadList != null)
            {
                horseHeadList.Clear();
            }
            horseHeadList = null;

            for (int i = 0; i < horseHeadObjList.Count; i++)
            {
                GameObject.DestroyImmediate(horseHeadObjList[i]);
            }
            horseHeadObjList.Clear();
            horseHeadObjList = null;

            if (horseList != null)
            {
                horseList.Clear();
            }
            horseList = null;
            gameRunRealCameraComponent = null;
            uiData       = null;
            battleModule = null;
        }