Пример #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);
         }
     }
 }
Пример #2
0
 public override void InitializeColorCell(PaintByNumbers reference, int num)
 {
     base.InitializeColorCell(reference, num);
     GetNumberToDisplay();
 }