Skip to content

Commit

Permalink
✨ feat(sf): Expose DFUNC_URC_Frequency._UpdateFrequencyText
Browse files Browse the repository at this point in the history
  • Loading branch information
esnya committed Feb 22, 2023
1 parent 834b25f commit 39b0ce7
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private float Frequency
frequency = value;
transmitter._SetFrequency(value);
receiver.Frequency = value;
frequencyText.text = value.ToString(frequencyTextFormat);
_UpdateFrequencyText();
if (switchFunctionSound) switchFunctionSound.Play();
}
}
Expand Down Expand Up @@ -128,5 +128,10 @@ private void LateUpdate()
prevTriggered = trigger;
}
}

public void _UpdateFrequencyText()
{
frequencyText.text = frequency.ToString(frequencyTextFormat);
}
}
}

0 comments on commit 39b0ce7

Please sign in to comment.