void Start () { instance = this; type = YackerType.values; if(fillGrid) { //Create Yackers at all six locations for(int x = 0; x < UIGrid.get().rows; x++) { for(int y = 0; y < UIGrid.get().cols; y++) { createAt(x,y); Debug.Log(x + ", " + y); } } } }
void Start () { instance = this; type = YackerType.values; if(fillGrid) { //Create Yackers at all six locations for(int x = 0; x < Grid.get().rows; x++) { for(int y = 0; y < Grid.get().cols; y++) { Grid.get().setYacker(x, y, shuffle(Grid.get ().locations [x, y].gameObject)); //if(!isUI) //createAt(x,y); //else //createAtUI(x,y); } } } }
//Singleton public static YackerType values; void Awake() { values = this; }