update(time) {
    if(time == null) {
      time = 0
    }
    
    this.timeObject.time += time

    this.gameState.update()
  }
/**
   * Sets the time to wanted number and updates the game
   */
Sets the time to wanted number and updates the game
Sets the time to wanted number and updates the game
update(time) {
    if(time == null) {
      time = 0
    }
    this.timeObject.time += time
    this.gameState.update()
  }
update ( time ) { if ( time == null ) { time = 0 } this . timeObject . time += time this . gameState . update ( ) }
Sets the time to wanted number and updates the game
Sets the time to wanted number and updates the game