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