コード例 #1
0
    //
    void Start()
    {
        //
        RecycleList = new List <Candy>();
        //
        ac = this.gameObject.GetComponent <ActionController>();
        ac.AttachEventCallback(this.ControllEventCallback);
        //
        this.AttachEventHandler(ac.isReadyCallback);
        //
        InitPool(this.mCol, this.mRow, ref this.ShowList);
        InitCandys(SVector);
        //
        MatchList = new ArrayList();
        //
        DestroyList = new List <Candy>();
        //
        while (2 < CheckMatch())
        {
            removeMatchCandy();

            DestroyCandy();

            InitCandys(SVector);
        }
    }
コード例 #2
0
    //
    void Start()
    {
        //
        RecycleList = new List<Candy>();
        //
        ac = this.gameObject.GetComponent<ActionController>();
        ac.AttachEventCallback(this.ControllEventCallback);
        //
        this.AttachEventHandler(ac.isReadyCallback);
        //
        InitPool(this.mCol, this.mRow, ref this.ShowList);
        InitCandys(SVector);
        //
        MatchList = new ArrayList();
        //
        DestroyList = new List<Candy>();
        //
        while (0 < CheckMatch())
        {
            removeMatchCandy();

            DestroyCandy();

            InitCandys(SVector);
        }
    }