示例#1
0
    private void HuntMouse(MouseAI mouse)
    {
        //Random chance of going nuts and destroying whatever is in the way
        if (Random.value == 0.0f)
        {
            mobAttack.onlyHitTarget = false;
        }
        else
        {
            mobAttack.onlyHitTarget = true;
        }

        Hiss(mouse.gameObject);
        mobAttack.StartFollowing(mouse.transform);
    }
示例#2
0
 public virtual void HuntMouse(MouseAI mouse)
 {
 }
示例#3
0
 public override void HuntMouse(MouseAI mouse)
 {
     Hiss(mouse.gameObject);
     FollowTarget(mouse.gameObject.transform, 5f);
 }