Esempio n. 1
0
		void Start() {
			displayText = GetComponentInChildren<Text>();
			if ( !displayText ) {
				enabled = false;
				return;
			}
			_counter = new FPScounter( updateFreq );
		}
Esempio n. 2
0
 void Start()
 {
     displayText = GetComponentInChildren <Text>();
     if (!displayText)
     {
         enabled = false;
     }
     _counter = new FPScounter(updateFreq);
 }
Esempio n. 3
0
 private void Start()
 {
     displayText = GetComponentInChildren <Text>();
     if (!displayText)
     {
         Debug.LogError("SpaceGravity2D: Text component not found.");
         enabled = false;
     }
     _counter = new FPScounter(updateFreq);
 }