void Start() { OverAudio = gameObject.GetComponent <AudioSource>(); SoundOpt = PlayerPrefs.GetInt("Sound"); if (SoundOpt.Equals(0)) { OverAudio.volume = 0f; } else { OverAudio.volume = 1f; } smng = mng.GetComponent <ingame_mng>(); smove = move.GetComponent <dinamic_move>(); for (int i = 0; i < 12; i++) { stiles[i] = tiles[i].GetComponent <move_tile>(); } }
void Start() { MngScr = Mng.GetComponent <ingame_mng>(); }