コード例 #1
0
 private void Start()
 {
     // will add AFPSCounter to the scene if it not exists
     // you don't need to call it if you already have AFPSCounter in the scene
     AFPSCounter.AddToScene();
     AFPSCounter.Instance.fpsCounter.OnFpsLevelChange += OnFPSLevelChanged;
 }
コード例 #2
0
        private void Start()
        {
            // will add AFPSCounter to the scene if it not exists
            // you don't need to call it if you already have AFPSCounter in the scene
            var newCounterInstance = AFPSCounter.AddToScene();

            // you also may get the instance at any time
            // using AFPSCounter.Instance property
            newCounterInstance.fpsCounter.OnFPSLevelChange += OnFPSLevelChanged;
        }
コード例 #3
0
ファイル: APITester.cs プロジェクト: AkhilRaja/ProjectRace
        private void Awake()
        {
            AFPSCounter.AddToScene();

            AFPSCounter.Instance.fpsCounter.onFPSLevelChange += OnFPSLevelChanged;
        }