상속: MonoBehaviour
예제 #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();
        }
예제 #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);
    }
예제 #3
0
 void Awake()
 {
     _instance = this;
     Application.targetFrameRate = 60;
 }