Beispiel #1
0
    void Start()
    {
        suc = new Succession(this);

        // 各セクションを登録
        var a1 = suc.Add(GetComponent <SectionA>().Initialize("a1"));
        var b1 = a1.Add(GetComponent <SectionB>().Initialize("b1"));
        var b2 = a1.Add(GetComponent <SectionB>().Initialize("b2"));
        var c1 = b2.Add(GetComponent <SectionC>().Initialize("c1"));
        var a2 = suc.Add(GetComponent <SectionA>().Initialize("a2"));

        // 全セクションへのパスを出力
        suc.OutputAllSectionPath();

        // セクション移動
        suc.Goto("/a1");
    }