예제 #1
0
 // Start is called before the first frame update
 void Start()
 {
     globalControl = FindObjectOfType <GlobalControl>();
     if (globalControl != null)
     {
         colorSelection = globalControl.GetColors();
         if (colorSelection != null)
         {
             SetRowColors(colorSelection);
             SetColColors(colorSelection);
         }
     }
     //save the original positions of all the grid panels so we can reset them when necessary
     SetOriginalPos(gridPanelsRow0, originalPositionsRow0);
     SetOriginalPos(gridPanelsRow1, originalPositionsRow1);
     SetOriginalPos(gridPanelsRow2, originalPositionsRow2);
     SetOriginalPos(gridPanelsCol0, originalPositionsCol0);
     SetOriginalPos(gridPanelsCol1, originalPositionsCol1);
     SetOriginalPos(gridPanelsCol2, originalPositionsCol2);
 }