예제 #1
0
 protected override DictionaryView <TriggerActionBase, RefParamOperator> DoActorEnter(ref PoolObjHandle <ActorRoot> inActor)
 {
     this.com = this.TargetSpawnPoint;
     if (this.com == null)
     {
         this.com = base.gameObject.GetComponentInChildren <SpawnPoint>();
     }
     if (this.com == null)
     {
         this.com = base.gameObject.GetComponent <SpawnPoint>();
     }
     DebugHelper.Assert(this.com != null, "动态-文字气泡触发器需要刷怪点组件,请检查...");
     if (this.com == null)
     {
         return(null);
     }
     if (this.total_time > 0f)
     {
         this.timer = Singleton <CTimerManager> .GetInstance().AddTimer((int)(this.total_time * 1000f), 1, new CTimer.OnTimeUpHandler(this.OnTimeUp));
     }
     UT.ResetTimer(this.timer, true);
     if (this.com.GetSpawnedList().get_Count() > 0)
     {
         this.On_AllSpawned(null);
     }
     else
     {
         this.com.onAllSpawned += new OnAllSpawned(this.On_AllSpawned);
     }
     this.com.onAllDeadEvt += new SpawnPointAllDeadEvent(this.On_AllDead);
     return(null);
 }
 private void On_AllSpawned(SpawnPoint sp)
 {
     UT.ResetTimer(this.timer, false);
     if (this.active_time > 0f)
     {
         this.active_timer = Singleton <CTimerManager> .GetInstance().AddTimer((int)(this.active_time * 1000f), 1, new CTimer.OnTimeUpHandler(this.OnActiveTimeUp));
     }
     else
     {
         this.SetHudText(Utility.GetBubbleText((uint)this.DialogueGroupId));
     }
 }