Beispiel #1
0
        //  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();
        }
Beispiel #2
0
 public void SetDisplayFps(bool b)
 {
     displayFps = b;
     _fpsDisplay?.ToggleFpsDisplay(b);
 }