public bool DiffPoint(EventPoint point)
 {
     if (Object.op_Equality((Object)point, (Object)null))
     {
         return(false);
     }
     return(point.GroupID != this._groupID || point.PointID != this._pointID);
 }
 public void SetPosition(EventPoint point)
 {
     if (Object.op_Equality((Object)point, (Object)null))
     {
         this._groupID = this._pointID = -1;
     }
     else
     {
         this._groupID = point.GroupID;
         this._pointID = point.PointID;
         Transform labelPoint = point.LabelPoint;
         ((Component)this).get_transform().SetPositionAndRotation(labelPoint.get_position(), labelPoint.get_rotation());
     }
 }
 private void OnUpdate()
 {
     this.Point = EventPoint.GetTargetPoint();
     if (Object.op_Inequality((Object)this.Point, (Object)null) && StoryPointEffect.Switch && ((Behaviour)this).get_isActiveAndEnabled())
     {
         if (this.DiffPoint(this.Point))
         {
             this.SetPosition(this.Point);
         }
         if (this._play)
         {
             return;
         }
         this.Play();
     }
     else
     {
         if (!this._play)
         {
             return;
         }
         this.Stop();
     }
 }