add: damage to lava
update: moved player gravitation to FixedUpdate update: GameController initialization is moved to Awake
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user