private GUIStyle labelStyle; //TODO For debug #endregion /******************************************************* * MonoBehaviour ********************************************************/ void Start() { labelStyle = new GUIStyle(); //TODO For debug labelStyle.normal.textColor = Color.white; //TODO For debug fxRunnerManager = new FXRunnerManager(this.transform, new RoadFunction(), lineMaterial, obsiclesPrefabs, 10, 1); }
void Update() { if (fxm == null) { fxm = FXRunner.fxRunnerManager; return; } if ((int)fxm.gameTime != lastTime) { lastTime = (int)fxm.gameTime; TimeGUIText.text = lastTime.ToString(); } }