sneakblock / starfall

A 3rd-person action shooter created for Georgia Tech's VGDEV Club in Fall 2022
2 stars 30 forks source link

Fix Game Loop, Remove Debug.Log Spam #48

Closed sneakblock closed 2 years ago

sneakblock commented 2 years ago

This PR contains two major changes:

  1. The line in AIManager that marks its GameObject as DontDestroyOnLoad has been commented out. Going forward, if Soham chooses, this change can be reverted, as long as the game loop functions properly.

  2. Most (nearly all) Debug.Log messages have been removed. Many of them were used for old debugging of old scripts, and were cluttering the cocnsole and negatively impacting performance. In general (and this goes for me, too) Debug.Log messages should be relatively rare, and certainly not be printed every frame.