Пример #1
0
    public void Start()
    {
        crew      = new List <CrewScript>();
        crew      = control.GetCrew();
        crewTexts = new List <CrewText>();
        crewTexts.Add(startCrewText);
        if (!firstTime)
        {
            for (int i = 1; i < 3; i++)
            {
                crewTexts.Add((CrewText)Instantiate(startCrewText, new Vector3(startCrewText.transform.position.x, startCrewText.transform.position.y + 15 * i), Quaternion.identity));
                crewTexts[i].transform.parent = crewPanel.transform;
            }

            UpdatePanel();
        }
        firstTime = false;
    }