Generation

generate functionMon, 05 Dec 2022

play footstep sound sequientially with the cadence of the velocity of the object tagged as "Player"

void playFootstepSound(Vector3 velocity) { if (Mathf.Abs(velocity.x) > 0.1f) { // play footstep sound here } }

Questions about programming?Chat with your personal AI assistant