Inheritance: MonoBehaviour
Exemple #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();
        }
Exemple #2
0
    private void Awake()
    {
        #if !TEST
        Destroy(this.gameObject);
        return;
                #endif

        if (ins != null && ins != this)
        {
            Destroy(this.gameObject);
            return;
        }
        ins = this;
        DontDestroyOnLoad(this.gameObject);
    }
Exemple #3
0
 void Awake()
 {
     _instance = this;
     Application.targetFrameRate = 60;
 }