add: damage to lava

update: moved player gravitation to FixedUpdate
update: GameController initialization is moved to Awake
This commit is contained in:
KOSMOGOR
2025-05-01 21:29:06 +03:00
parent e514bb62ab
commit 8dd89dafa2
8 changed files with 110 additions and 11 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ public class GameController : MonoBehaviour
public List<EnemyInfo> enemies;
public Dictionary<BulletType, int> inventory = new();
public void Start() {
public void Awake() {
if (i) { Destroy(gameObject); return; }
i = GetComponent<GameController>();
DontDestroyOnLoad(gameObject);