// registerGoals -- Hook for registering goals for a specific level public void registerGoals(string key, LevelSystem levelSystem) { ScriptBase script = null; if (_scripts.TryGetValue(key, out script)) { script.registerGoals(levelSystem); } }