void FinalProjectileMachine() { choiceForShooting = Random.Range(1, 3); anim.SetBool("spitting", true); if (choiceForShooting <= 1) { nailScript.NailShootFunction(); } else if (choiceForShooting > 1 && choiceForShooting <= 2) { WaterShooter(); } else if (choiceForShooting > 2 && choiceForShooting <= 3) { WaterShooter(); } anim.SetBool("spitting", false); }