// Used whenever the gameplay scene Starts public void AttachFpsDisplay(FpsDisplay fps = null) { _fpsDisplay = fps; _fpsDisplay?.ToggleFpsDisplay(displayFps); // var splitScreenManager = FindObjectOfType <SplitScreenManager>(); if (splitScreenManager == null) { return; } splitScreenManager.Initialize(); splitScreenManager.EnableSplitScreen(); }
private void Awake() { #if !TEST Destroy(this.gameObject); return; #endif if (ins != null && ins != this) { Destroy(this.gameObject); return; } ins = this; DontDestroyOnLoad(this.gameObject); }
void Awake() { _instance = this; Application.targetFrameRate = 60; }