Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
 void Update()
 {
     if (fxm == null)
     {
         fxm = FXRunner.fxRunnerManager;
         return;
     }
     if ((int)fxm.gameTime != lastTime)
     {
         lastTime         = (int)fxm.gameTime;
         TimeGUIText.text = lastTime.ToString();
     }
 }