mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-27 12:03:00 +00:00
de-hardcode conditional
This commit is contained in:
parent
5cf2255022
commit
b506c8f452
1 changed files with 5 additions and 5 deletions
|
@ -44,7 +44,7 @@ namespace RhythmHeavenMania.Games.DrummingPractice
|
||||||
// TODO: Move this to OnGameSwitch() when functional?
|
// TODO: Move this to OnGameSwitch() when functional?
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
SetMiis(UnityEngine.Random.Range(0, player.miiFaces.Count));
|
SetMiis();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
|
@ -97,9 +97,9 @@ namespace RhythmHeavenMania.Games.DrummingPractice
|
||||||
rightDrummer.SetFace(type);
|
rightDrummer.SetFace(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetMiis(int playerFace, int leftFace = -1, int rightFace = -1, bool all = false)
|
public void SetMiis(int playerFace = (int) MiiType.Random, int leftFace = (int) MiiType.Random, int rightFace = (int) MiiType.Random, bool all = false)
|
||||||
{
|
{
|
||||||
if (playerFace == -1)
|
if (playerFace == (int) MiiType.Random)
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
@ -117,7 +117,7 @@ namespace RhythmHeavenMania.Games.DrummingPractice
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (leftFace == -1)
|
if (leftFace == (int) MiiType.Random)
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
@ -128,7 +128,7 @@ namespace RhythmHeavenMania.Games.DrummingPractice
|
||||||
else
|
else
|
||||||
leftDrummer.mii = leftFace;
|
leftDrummer.mii = leftFace;
|
||||||
|
|
||||||
if (rightFace == -1)
|
if (rightFace == (int) MiiType.Random)
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue