Serious work has started on Round 2, and also a system for loading case files.
This commit is contained in:
@@ -27,6 +27,8 @@ public class HostCardManager : UdonSharpBehaviour
|
||||
[SerializeField] private HostCardTheChaseInterface _TheChaseInterface;
|
||||
[SerializeField] private HostCardFinalRoundInterface _FinalRoundInterface;
|
||||
|
||||
//[SerializeField] private HostCardRound2Interface _Round2Interface;
|
||||
|
||||
[SerializeField] private HostPanelInterface _AdminPanelInterface;
|
||||
|
||||
public override void OnPickup()
|
||||
@@ -90,7 +92,7 @@ public class HostCardManager : UdonSharpBehaviour
|
||||
}
|
||||
|
||||
|
||||
public HostCardInterfaceBase EnableHostCardDisplay(QuestionType Type)
|
||||
public HostCardInterfaceBase EnableHostCardDisplay(GameType Game, QuestionType Question)
|
||||
{
|
||||
_BetweenRoundsInterface.gameObject.SetActive(false);
|
||||
_MultipleChoiceInterface.gameObject.SetActive(false);
|
||||
@@ -98,29 +100,47 @@ public class HostCardManager : UdonSharpBehaviour
|
||||
_TheChaseInterface.gameObject.SetActive(false);
|
||||
_FinalRoundInterface.gameObject.SetActive(false);
|
||||
|
||||
switch (Type)
|
||||
//_Round2Interface.gameObject.SetActive(false);
|
||||
|
||||
switch (Game)
|
||||
{
|
||||
case QuestionType.BetweenRounds:
|
||||
_BetweenRoundsInterface.gameObject.SetActive(true);
|
||||
return _BetweenRoundsInterface;
|
||||
case QuestionType.MultipleChoice:
|
||||
_MultipleChoiceInterface.gameObject.SetActive(true);
|
||||
return _MultipleChoiceInterface;
|
||||
case QuestionType.LightningRound:
|
||||
_LightningRoundInterface.gameObject.SetActive(true);
|
||||
return _LightningRoundInterface;
|
||||
case QuestionType.DumpsterDive: break;
|
||||
case QuestionType.TheChase:
|
||||
_TheChaseInterface.gameObject.SetActive(true);
|
||||
return _TheChaseInterface;
|
||||
case QuestionType.FinalRound:
|
||||
_FinalRoundInterface.gameObject.SetActive(true);
|
||||
return _FinalRoundInterface;
|
||||
case QuestionType.Tiebreaker:
|
||||
case GameType.LocateTheCrook:
|
||||
{
|
||||
switch (Question)
|
||||
{
|
||||
case QuestionType.MultipleChoice:
|
||||
_MultipleChoiceInterface.gameObject.SetActive(true);
|
||||
return _MultipleChoiceInterface;
|
||||
case QuestionType.LightningRound:
|
||||
_LightningRoundInterface.gameObject.SetActive(true);
|
||||
return _LightningRoundInterface;
|
||||
case QuestionType.DumpsterDive: break;
|
||||
case QuestionType.TheChase:
|
||||
_TheChaseInterface.gameObject.SetActive(true);
|
||||
return _TheChaseInterface;
|
||||
case QuestionType.FinalRound:
|
||||
_FinalRoundInterface.gameObject.SetActive(true);
|
||||
return _FinalRoundInterface;
|
||||
case QuestionType.Tiebreaker:
|
||||
default:
|
||||
_BetweenRoundsInterface.gameObject.SetActive(true);
|
||||
return _BetweenRoundsInterface;
|
||||
}
|
||||
} break;
|
||||
case GameType.RecoverTheLoot:
|
||||
{
|
||||
|
||||
} break;
|
||||
case GameType.ChaseCarmen:
|
||||
{
|
||||
|
||||
} break;
|
||||
default:
|
||||
_BetweenRoundsInterface.gameObject.SetActive(true);
|
||||
return _BetweenRoundsInterface;
|
||||
}
|
||||
|
||||
_BetweenRoundsInterface.gameObject.SetActive(true);
|
||||
return _BetweenRoundsInterface;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user