Exemplo n.º 1
0
 public void LaunchFight(UIIntroduction previous)
 {
     previous.gameObject.SetActive(false);
     if (currentFight != null)
     {
         Destroy(currentFight);
     }
     currentFight = GameObject.Instantiate <Fight>(fight);
     currentFight.gameObject.SetActive(true);
     currentFight.Setup(playerDeck, ennemies[currentEnnemy]);
 }
Exemplo n.º 2
0
        private void InfoViewer_Load(object sender, EventArgs e)
        {
            if (Definition == null)
            {
                return;
            }

            UIName.Text         = Definition.Name;
            UIByLine.Text       = Definition.Byline;
            UITheme.Text        = Definition.Theme;
            UIIntroduction.Text = Definition.IntroText.Substring(0, 32);
            for (int i = 1; i < 8; i++)
            {
                UIIntroduction.AppendText("\r\n" + Definition.IntroText.Substring(i * 32, 32));
            }
        }
Exemplo n.º 3
0
 public void LaunchEnnemyIntruduction(UIIntroduction previous)
 {
     previous.gameObject.SetActive(false);
     introduceEnnemy.gameObject.SetActive(true);
     introduceEnnemy.gameObject.GetComponent <IntroduceEnnemy>().Setup(ennemies[currentEnnemy]);
 }