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]); }
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)); } }
public void LaunchEnnemyIntruduction(UIIntroduction previous) { previous.gameObject.SetActive(false); introduceEnnemy.gameObject.SetActive(true); introduceEnnemy.gameObject.GetComponent <IntroduceEnnemy>().Setup(ennemies[currentEnnemy]); }