private void Start() { GetComponent <Renderer>().material.color = CubesColors.GetColor(gameObject.name); }
public static Color GetSelectedCubeColor() { return(CubesColors.GetColor(SelectedCube)); }
private void Start() { GetComponent <Renderer>().material.color = CubesColors.GetColor(gameObject.name); }
public static Color GetSelectedCubeColor() { return(CubesColors.GetColor(SelectedCube)); }