示例#1
0
 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();
 }
示例#2
0
 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());
 }
示例#3
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
     StartCoroutine(AnimateTitle());
 }
示例#4
0
 // 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>());
             }
         }
     }
 }
示例#5
0
 public void Display()
 {
     AnimateText.GetInstance().Display(StoryManager.GetInstance().Text, _text);
     _character.WyswietlMorde();
 }
示例#6
0
 void Start()
 {
     _instance = this;
 }