コード例 #1
0
 public override void OnUse()
 {
     base.OnUse();
     this.navmeshCut = null;
     this._attackOneTargetCounter     = 0;
     this._attackOneTargetCounterLast = 0;
     this._myLastTarget            = new PoolObjHandle <ActorRoot>();
     this._aroundEffects           = null;
     this._attackLinker            = null;
     _myselfHeightVec              = new Vector3(0f, 3f, 0f);
     this.attackAreaCheck          = null;
     this._aroundEnemyMonsterCount = 0;
     this.m_bFirstAttacked         = false;
     this.HitEffect = new OrganHitEffect();
     this.cfgInfo   = null;
 }
コード例 #2
0
 public override void OnUse()
 {
     base.OnUse();
     this.navmeshCut = null;
     this._attackOneTargetCounter     = 0;
     this._attackOneTargetCounterLast = 0;
     this._myLastTarget            = default(PoolObjHandle <ActorRoot>);
     this.nOutCombatHpRecoveryTick = 0;
     this._aroundEffects           = null;
     this._attackLinker            = null;
     this.attackAreaCheck          = null;
     this._aroundEnemyMonsterCount = 0;
     this.m_bFirstAttacked         = false;
     this.HitEffect       = default(OrganHitEffect);
     this.cfgInfo         = null;
     this.antiHiddenTimer = 0;
     this.TarEyeList_     = null;
     this.attackDistSqr   = 0L;
 }
コード例 #3
0
ファイル: OrganWrapper.cs プロジェクト: TonyDongGuaPi/joework
 public override void Born(ActorRoot owner)
 {
     base.Born(owner);
     this.actor.isMovable   = false;
     this.actor.isRotatable = false;
     VCollisionShape.InitActorCollision(this.actor);
     this.navmeshCut = base.gameObject.GetComponent <NavmeshCut>();
     if (this.navmeshCut)
     {
         this.navmeshCut.enabled = true;
     }
     this._aroundEffects           = new GameObject[3];
     this.attackAreaCheck          = new AreaCheck(new ActorFilterDelegate(this.ActorMarkFilter), new AreaCheck.ActorProcess(this.ActorMarkProcess), Singleton <GameObjMgr> .GetInstance().GetCampActors(this.actor.GiveMyEnemyCamp()));
     this._aroundEnemyMonsterCount = 0;
     this.cfgInfo = OrganDataHelper.GetDataCfgInfoByCurLevelDiff(this.actor.TheActorMeta.ConfigId);
     if (this.cfgInfo != null)
     {
         this.actorSubType = this.cfgInfo.bOrganType;
     }
 }
コード例 #4
0
        public void FightStart()
        {
            this._hostPlayer = Singleton <GamePlayerCenter> .GetInstance().GetHostPlayer();

            this._areaCheck = new AreaCheck(new ActorFilterDelegate(this.AroundTowerFilter), new AreaCheck.ActorProcess(this.ActorMarkProcess), Singleton <GameObjMgr> .instance.OrganActors);
        }
コード例 #5
0
 public void FightOver()
 {
     this._hostPlayer = null;
     this._areaCheck  = null;
 }
コード例 #6
0
 public HostPlayerLogic()
 {
     this._hostPlayer = null;
     this._areaCheck  = null;
 }