public virtual void SetBait(CSimpleBaitController value) { this.m_Bait = value; this.m_ChaseBaitTimer = value.data.baitTimer; this.m_ChaseBaitRatio = value.data.baitTimer; this.m_MaxBaitRatio = value.data.baitTimer; }
public virtual void ChaseBait(CSimpleBaitController bait, float dt) { this.MoveAroundTarget(bait.GetPosition(), this.m_ChaseBaitRatio, dt); this.m_ChaseBaitTimer -= dt; // this.m_ChaseBaitRatio += dt; }
public virtual void BiteBait(CSimpleBaitController bait, float dt) { this.m_Transform.position = bait.GetPosition(); }
public override void StartState() { base.StartState(); this.m_Bait = this.m_Controller.GetBait(); }