public void setActiveUIComponent(You.NAME activeCharacter) { if (activeCharacter == You.NAME.GRAHAM) { this.activeTextDisplayManager = GrahamTextDisplay; this.activeChoiceButtonManager = GrahamChoiceButtons; this.activeDialogueAnimationController = GrahamDialogueBoxAnimationController; this.ShioTextDisplay.gameObject.SetActive(false); this.ShioChoiceButtons.gameObject.SetActive(false); } else { this.activeTextDisplayManager = ShioTextDisplay; this.activeChoiceButtonManager = ShioChoiceButtons; this.activeDialogueAnimationController = ShioDialogueBoxAnimationController; this.GrahamTextDisplay.gameObject.SetActive(false); this.GrahamChoiceButtons.gameObject.SetActive(false); } this.activeTextDisplayManager.gameObject.SetActive(true); this.activeChoiceButtonManager.gameObject.SetActive(true); resetUIInitialState(); }
public void setPlayerCharacter(You.NAME characterName) { this.playerCharacter = characterName; }