Beispiel #1
0
    /* Update player on every call. Updates InteractableManager and DemonSpawn on intervals. */
    void Update()
    {
        player.ExUpdate();
        if (Time.time - intManLastUpdate > INTMAN_UPDATE_DELTA)
        {
            intManager.ExUpdate();
            intManLastUpdate = Time.time;
        }

        if (Time.time - demonSpawnLastUpdate > DEMONSPAWN_UPDATE_DELTA)
        {
            demonSpawn.ExUpdate();
            demonSpawnLastUpdate = Time.time;
        }
    }