private void Awake() { colors = new List <Color>(); //zhening: maybe unnecessary, but it'll make things easier, might be deleted in the future pawns = new List <Pawn>(); numberOfCubes = new Dictionary <Color, int>(); numberOfCubes.Add(Color.black, 0); numberOfCubes.Add(Color.blue, 0); numberOfCubes.Add(Color.magenta, 0); numberOfCubes.Add(Color.yellow, 0); numberOfCubes.Add(Color.red, 0); redCube = "Cubes/redCube"; blackCube = "Cubes/blackCube"; blueCube = "Cubes/blueCube"; yellowCube = "Cubes/yellowCube"; purpleCube = "Cubes/purpleCube"; gameInfo = GameObject.FindGameObjectWithTag("gameInfoDisplay").GetComponent <GameInfoDisplay> (); }
private void Awake() { ins = this; }