Example #1
0
 public void ActivateAdvance(AdditionalInfo additionalInfo)
 {
     // Debug.Log("Activate AdditionalInfoPanel");
     gameObject.SetActive(true);
     transform.Find("Panel/Header").GetComponent <Text>().text = additionalInfo.GetHeader();
     string[] lines = additionalInfo.GetLines();
     transform.Find("Panel/InfoText/Line1").GetComponent <Text>().text = lines[0];
     transform.Find("Panel/InfoText/Line2").GetComponent <Text>().text = lines[1];
     transform.Find("Panel/InfoText/Line3").GetComponent <Text>().text = lines[2];
     transform.Find("Panel/InfoText/Line4").GetComponent <Text>().text = lines[3];
     transform.Find("Panel/InfoText/Line5").GetComponent <Text>().text = lines[4];
     transform.Find("Panel/InfoText/Line6").GetComponent <Text>().text = lines[5];
     transform.Find("Panel/InfoText/Line7").GetComponent <Text>().text = lines[6];
     transform.Find("Panel/InfoText/Line8").GetComponent <Text>().text = lines[7];
 }