void Awake(){ if(self) { Destroy(this); Destroy(this.gameObject); return; } self = this; DontDestroyOnLoad(this.gameObject); Application.targetFrameRate = 30; UpdateResolution(); }