public void Display() { AnimateText.GetInstance().Display(StoryManager.GetInstance().Text, _title); for (int i = 0; i < _choices.Length; i++) { StoryManager.GetInstance().OptionText[i].text += "- " + _choices[i]; } HighlightActiveOption(); _character.WyswietlMorde(); }
void Start() { audio = GetComponent <AudioSource>(); player.GetComponent <SpriteRenderer>().enabled = false; promptImage.sprite = movePromptSprite; promptImage.enabled = false; animateTextScript = text.GetComponent <AnimateText>(); preciousUI = GameObject.FindGameObjectWithTag("preciousUI"); preciousUI.SetActive(false); StartCoroutine(startBuffer()); }
void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } StartCoroutine(AnimateTitle()); }
// Start is called before the first frame update void Start() { Transform[] panels = story.GetComponentsInChildren <Transform>(true); foreach (Transform panel in panels) { if (panel.name == "ActorLeft") { ImageLeft = panel.GetComponent <AnimateActor>(); } else if (panel.name == "ActorRight") { ImageRigth = panel.GetComponent <AnimateActor>(); } else if (panel.name == "dialogLeft") { textLeft = panel.GetComponent <AnimateText>(); } else if (panel.name == "dialogRight") { textRight = panel.GetComponent <AnimateText>(); } else if (panel.name == "Panel_left") { panelLeft = panel.gameObject; } else if (panel.name == "Panel_rigth") { panelRight = panel.gameObject; } else if (panel.tag == "optionsButton") { if (panel.GetComponent <ActionButton>() != null && panel.GetComponent <ActionButton>().location == "left") { leftOptions.Add(panel.GetComponent <ActionButton>()); } else if (panel.GetComponent <ActionButton>() != null && panel.GetComponent <ActionButton>().location == "rigth") { rightOptions.Add(panel.GetComponent <ActionButton>()); } } } }
public void Display() { AnimateText.GetInstance().Display(StoryManager.GetInstance().Text, _text); _character.WyswietlMorde(); }
void Start() { _instance = this; }