示例#1
0
 protected void OnSelfEnter()
 {
     this.currentState = FakeDrop.FakeDropState.None;
     if (EntityWorld.Instance.EntSelf != null)
     {
         EntityWorld.Instance.EntSelf.GetFakeDrop();
     }
     FakeDrop.DeleteFakeDrop(this);
 }
示例#2
0
 protected void Waiting()
 {
     this.waitTime += this.deltaTime;
     if (this.waitTime < this.WaitDefaultTime)
     {
         return;
     }
     this.currentState = FakeDrop.FakeDropState.FlyToEntity;
     if (EntityWorld.Instance.ActSelf)
     {
         this.flyToEntityFxID = FXManager.Instance.PlayFXOfFollow(this.flyToEntityFxModelID, base.get_transform().get_position(), EntityWorld.Instance.ActSelf.FixTransform, (float)FakeDrop.FlyToEntityDefaultSpeed, 0.2f, 0f, delegate
         {
             if (EntityWorld.Instance.EntSelf != null)
             {
                 EntityWorld.Instance.EntSelf.GetFakeDrop();
             }
             FakeDrop.DeleteFakeDrop(this);
         }, FXClassification.Normal);
     }
     this.Hide();
 }