private void SetColorsOnGameObject() { ColorStyle style = ColorStyleHolder.GetAColorSet(); cam.backgroundColor = style.BackGroudColor; Color colorq = style.TreeColor; bigTree.transform.GetComponent <SpriteRenderer>().material.color = colorq; tree.transform.GetComponent <SpriteRenderer>().material.color = colorq; smallTree.transform.GetComponent <SpriteRenderer>().material.color = colorq; }
public void Awake() { instance = this; }