public override void Fight() { base.Fight(); if (ActorHelper.IsCaptainActor(ref this.actorPtr)) { this.m_isControledByMan = true; this.m_isAutoAI = false; } else { this.m_isControledByMan = false; this.m_isAutoAI = true; } IGameActorDataProvider actorDataProvider = Singleton <ActorDataCenter> .instance.GetActorDataProvider(GameActorDataProviderType.ServerDataProvider); ActorServerData actorServerData = default(ActorServerData); if (actorDataProvider != null && actorDataProvider.GetActorServerData(ref this.actor.TheActorMeta, ref actorServerData)) { this.m_skinId = actorServerData.SkinId; this.m_skinCfgId = CSkinInfo.GetSkinCfgId((uint)this.actor.TheActorMeta.ConfigId, this.m_skinId); if (this.m_skinId != 0u) { ResHeroSkin heroSkin = CSkinInfo.GetHeroSkin((uint)this.actor.TheActorMeta.ConfigId, this.m_skinId); if (heroSkin != null && !string.IsNullOrEmpty(heroSkin.szSoundSwitchEvent)) { Singleton <CSoundManager> .instance.PostEvent(heroSkin.szSoundSwitchEvent, this.actor.gameObject); } } } this.SetSkillEffectPath(); base.EnableRVO(false); if (this.actor.HorizonMarker != null && FogOfWar.enable) { this.actor.HorizonMarker.SightRadius = Horizon.QueryGlobalSight(); } }
public void FightStart() { this._fighting = true; Horizon.QueryGlobalSight(); this._enabled = (Singleton<BattleLogic>.instance.GetCurLvelContext().m_horizonEnableMethod == Horizon.EnableMethod.EnableAll); }