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); }
public virtual void HuntMouse(MouseAI mouse) { }
public override void HuntMouse(MouseAI mouse) { Hiss(mouse.gameObject); FollowTarget(mouse.gameObject.transform, 5f); }