Ejemplo n.º 1
0
        public void PrepareFight()
        {
            int count = this.StaticActors.get_Count();

            for (int i = 0; i < count; i++)
            {
                this.StaticActors.get_Item(i).get_handle().InitActor();
                this.StaticActors.get_Item(i).get_handle().PrepareFight();
            }
            int count2 = this.DynamicActors.get_Count();

            for (int j = 0; j < count2; j++)
            {
                this.DynamicActors.get_Item(j).get_handle().InitActor();
                this.DynamicActors.get_Item(j).get_handle().PrepareFight();
            }
            if (Singleton <BattleLogic> .GetInstance().m_LevelContext.IsGameTypeBurning())
            {
                BurnExpeditionUT.ApplyHP2Game(this.DynamicActors);
            }
        }
Ejemplo n.º 2
0
        public void PrepareFight()
        {
            int count = this.StaticActors.get_Count();

            for (int i = 0; i < count; i++)
            {
                this.StaticActors.get_Item(i).handle.InitActor();
                this.StaticActors.get_Item(i).handle.PrepareFight();
            }
            int count2 = this.DynamicActors.get_Count();

            for (int j = 0; j < count2; j++)
            {
                this.DynamicActors.get_Item(j).handle.InitActor();
                this.DynamicActors.get_Item(j).handle.PrepareFight();
            }
            if (Singleton <BattleLogic> .GetInstance().m_LevelContext.IsGameTypeBurning())
            {
                BurnExpeditionUT.ApplyHP2Game(this.DynamicActors);
            }
            if (Singleton <WatchController> .GetInstance().CanShowActorIRPosMap())
            {
                if (this.PositionCamp1Records == null)
                {
                    this.PositionCamp1Records = new List <Vector3>();
                }
                if (this.PositionCamp2Records == null)
                {
                    this.PositionCamp2Records = new List <Vector3>();
                }
                if (this.PositionCampTotalRecords == null)
                {
                    this.PositionCampTotalRecords = new List <Vector3>();
                }
                this.PositionCamp1Records.Clear();
                this.PositionCamp2Records.Clear();
                this.PositionCampTotalRecords.Clear();
            }
        }