protected void Start() { bool wasUnderway = (PlayerPrefs.GetInt(showUnderwayKey, 0) == 1); if (wasUnderway) { ModeName prevMode = (ModeName)PlayerPrefs.GetInt(oldModeKey); if (prevMode == ModeName.ACTOR) { actorecoveryResumeLightbox.Open(); Actor previousActor = (Actor)PlayerPrefs.GetInt(lastActorKey, -1); if (Variables.Instance.language == Language.ENGLISH) { previousActorText.text = EnumDisplayNamesEnglish.ActorName(previousActor); } else { previousActorText.text = EnumDisplayNamesMandarin.ActorName(previousActor); } } else { recoveryResumeLightbox.Open(); } } }
private void ActorChanged(ActorActSet aas) { Diglbug.Log("Actor controls changing display values to " + aas.name, PrintStream.ACTORS); if (currentActorSet != null) { currentActorSet.ActContentCompleteEvent -= MarkerComplete; currentActorSet.WaitingForNextActEvent -= WaitingForNextAct; } currentActorSet = aas; currentActorSet.ActContentCompleteEvent += MarkerComplete; currentActorSet.WaitingForNextActEvent += WaitingForNextAct; SetMarkersFromActorActSet(currentActorSet); if (Variables.Instance.language == Language.ENGLISH) { actorName.text = EnumDisplayNamesEnglish.ActorName(currentActorSet.actor); actName.text = EnumDisplayNamesEnglish.DefinedActName(aas.GetFirstAct().definedAct); } else { actorName.text = EnumDisplayNamesMandarin.ActorName(currentActorSet.actor); actName.text = EnumDisplayNamesMandarin.DefinedActName(aas.GetFirstAct().definedAct); } SetWaiting(); assistantSoundSource.Play(); cancelChooseActorButton.gameObject.SetActive(true); }
public override void SwitchToLanguage(Language l) { string n; if (l == Language.ENGLISH) { n = EnumDisplayNamesEnglish.ActorName(actor); } else { n = EnumDisplayNamesMandarin.ActorName(actor); } nameText.text = n; gameObject.name = n; }