public static SceneParameters GetCurrentSceneParameters() { if (_currentSceneParameters == null) { _currentSceneParameters = new SceneParameters(); } return(_currentSceneParameters); }
private static void ApplyNextParametersInCurrentParamenters() { CurrentSceneParameters = new SceneParameters(); if (ParametersToPassToNextScene != null) { CurrentSceneParameters.Message = ParametersToPassToNextScene.Message; foreach (AOTKeyValuePair <string, object> v_pair in ParametersToPassToNextScene.GetAllParameters()) { if (v_pair != null) { AddParameter(v_pair.Key, v_pair.Value, false, true); } } } ParametersToPassToNextScene = null; }
public static bool LoadLevel(int p_index, SceneParameters p_parameter, bool p_force = false) { ParametersToPassToNextScene = p_parameter; return(LoadLevel(p_index, p_force)); }
public static bool LoadLevel(string p_levelName, SceneParameters p_parameter, bool p_force = false) { ParametersToPassToNextScene = p_parameter; return(LoadLevel(p_levelName, p_force)); }
public static bool LoadLevelFading(int p_index, SceneParameters p_parameter, Color p_color, float p_fadeTime = 1.0f) { ParametersToPassToNextScene = p_parameter; return(LoadLevelFading(p_index, p_color, p_fadeTime)); }