// onSwitchLevel public void onSwitchLevel(string from, string to) { ScriptBase script = null; if (_scripts.TryGetValue(to, out script)) { script.onSwitchLevel(from, to); } }
// onSwitchLevel public void onSwitchLevel(string from, string to) { ScriptBase script = null; if (_scripts.TryGetValue(to, out script)) { script.onSwitchLevel(from, to); } }