Esempio n. 1
0
 public static void GenerateGenericPBNColorCellRow(int numCells, PaintByNumbers pbn, Vector2 startPos)
 {
     if (numCells > 0)
     {
         for (int i = 0; i < numCells; i++)
         {
             PBNColorCell newCell = InstantiatePBNColorCell(i, pbn);
             newCell.SetColor(Color.white);
             newCell.transform.SetParent(pbn.transform);
             newCell.rectTransform.position = new Vector2(startPos.x + 100 * i, startPos.y);
         }
     }
 }
 public override void InitializeColorCell(PaintByNumbers reference, int num)
 {
     base.InitializeColorCell(reference, num);
     GetNumberToDisplay();
 }