public override void OnStart() { GlobalVariables.Instance.SetVariableValue("EnemiesAlive", (int)GlobalVariables.Instance.GetVariable("EnemiesAlive").GetValue() + 1); _instantiator = GetComponent <EnemyInstantiator>(); }
private void Awake() { _playthrough = JsonUtility.FromJson <Playthrough>(playthroughJson.text); _instantiator = GetComponent <EnemyInstantiator>(); }