public void PlayerFireshipInputs(
float a_Vertical,
float a_Horizontal, bool a_select)
{
// Zero input if not enabled
if (!this.isActiveAndEnabled)
{
pitch = 0;
yaw = 0;
m_lastSelectHeld = false;
m_selectHeld = false;
}
else
{
pitch = a_Vertical;
yaw = a_Horizontal;
// Keep the inputs in reasonable ranges, see the standard asset examples for more
ClampInputs();
// Set back button state
m_lastSelectHeld = m_selectHeld;
m_selectHeld = a_select;
}
}