示例#1
0
 protected void OnSelfEnter()
 {
     this.currentState = CityFakeDrop.CityFakeDropState.None;
     if (EntityWorld.Instance.EntSelf != null)
     {
         EntityWorld.Instance.EntSelf.GetFakeDrop();
     }
     EventDispatcher.Broadcast(WildBossManagerEvent.GetCityFakeDrop);
     CityFakeDrop.DeleteCityFakeDrop(this);
 }
示例#2
0
 private void Update()
 {
     this.deltaTime = Time.get_deltaTime();
     CityFakeDrop.CityFakeDropState cityFakeDropState = this.currentState;
     if (cityFakeDropState != CityFakeDrop.CityFakeDropState.FlyToWait)
     {
         if (cityFakeDropState != CityFakeDrop.CityFakeDropState.Wait)
         {
         }
     }
     else
     {
         this.FlyingToWaitPosition();
     }
 }
示例#3
0
 protected void FlyingToWaitPosition()
 {
     this.flyToWaitPositionTime += this.deltaTime;
     if (this.flyToWaitPositionTime < CityFakeDrop.FlyToWaitPositionDefaultTime)
     {
         base.get_transform().Translate(this.flyToWaitPositionSpeed * this.deltaTime);
     }
     else
     {
         this.currentState = CityFakeDrop.CityFakeDropState.Wait;
         base.get_transform().set_position(this.waitPosition);
         this.animator.Play("idle");
         this.waitFxID = FXManager.Instance.PlayFX(this.waitFxModelID, base.get_transform(), Vector3.get_zero(), Quaternion.get_identity(), 1f, 1f, 0, false, 0, null, null, 1f, FXClassification.Normal);
         this.waitCollider.set_enabled(true);
     }
 }