private void HuntMouse(MouseAI mouse) { //Random chance of going nuts and destroying whatever is in the way mobAttack.onlyHitTarget = Random.value != 0.1f; Hiss(mouse.gameObject); mobAttack.StartFollowing(mouse.transform); }
IEnumerator StatueStalk(Transform stalked) { while (!IsSomeoneLookingAtMe()) { if (mobAttack.followTarget == null) { mobAttack.StartFollowing(stalked); } yield return(WaitFor.Seconds(.2f)); } Freeze(); yield break; }
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); }