예제 #1
0
    private void Awake()
    {
        ratio = Screen.width / width;

        gridArr     = new Vector2[11, 11];
        gridViewArr = new Vector2[11, 11];

        gridcs = gridGO.GetComponent <grid>();
        grAcs  = gridAnswerGO.GetComponent <gridAnswer>();
        PBcs   = PlusButtonGO.GetComponent <PlusButton>();
        Pcs    = PalleteGO.GetComponent <Palette>();
        MBcs   = MinusButtonGO.GetComponent <MinusButton>();
        MPBcs  = MultiplicationButtonGO.GetComponent <MultiplicationButton>();
        DBcs   = DivisionButtonGO.GetComponent <DivisionButton>();
        for (int i = 0; i < 10; i++)
        {
            Numcs[i] = NumGO[i].GetComponent <NumButton>();
        }


        //////////////////////////// 정의
        DataBasecs = GetComponent <DB>();
        GetData();



        gridcs.MakeGrid(gridSize);
        grAcs.MakeGrid(gridSize);

        SetOperStack();
        SetNumStack();
        OffInteractable_Num();
        SetOperButton();

        gridcs.isfinish_setting = true;
    }