Example #1
0
    public void AddScene()
    {
        int    index = int.Parse(curNum.text) - 1;
        HScene scene = new HScene();

        SaveScene(list[index]);
        LoadScene(scene);
        list.Insert(index + 1, scene);
        sn.Add(index + 1);

        curNum.text = index + 2 + "";
        num.text    = int.Parse(num.text) + 1 + "";
    }
Example #2
0
    public void Construction(List <HScene> data)
    {
        int n = data.Count;

        Awake();
        sn.Init();

        for (int i = 0; i < n; i++)
        {
            sn.Add(0);
        }

        list        = data;
        curNum.text = "1";
        num.text    = n + "";
        LoadScene(list[0]);
    }