void Awake() { sound= GetComponent<AudioSource>(); bSoundOn= GameObject.Find ("sound_on").GetComponent<Button>(); bSoundOff= GameObject.Find ("sound_off").GetComponent<Button>(); if (PlayerPrefs.GetInt ("mute", 0) == 0) { bSoundOff.gameObject.SetActive (false); } else { bSoundOn.gameObject.SetActive (false); } mute = PlayerPrefs.GetInt ("mute")==1; if (mute) sound.mute = true; blackTransparent = new Color32 (40,40,40,0); white= new Color32 (255,255,255,255); boardScript=GetComponent<BoardManager>(); boardScript.createBoard (8); boardScript.InstatiatePolygons (15,1,4); //StartCoroutine("initialize"); title.position = new Vector3 (title.position.x,title.position.y-(Screen.height/4)+50); }