コード例 #1
0
 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;
 }
コード例 #2
0
    public virtual void ChaseBait(CSimpleBaitController bait, float dt)
    {
        this.MoveAroundTarget(bait.GetPosition(), this.m_ChaseBaitRatio, dt);
        this.m_ChaseBaitTimer -= dt;
//		this.m_ChaseBaitRatio += dt;
    }
コード例 #3
0
 public virtual void BiteBait(CSimpleBaitController bait, float dt)
 {
     this.m_Transform.position = bait.GetPosition();
 }
コード例 #4
0
 public override void StartState()
 {
     base.StartState();
     this.m_Bait = this.m_Controller.GetBait();
 }