Exemplo n.º 1
0
        public static SceneUserData GetInstance()
        {
            if (instance == null)
            {
                instance = new SceneUserData();
            }

            return(instance);
        }
Exemplo n.º 2
0
        public static object GetValue(string Name)
        {
            SceneUserData i = GetInstance();

            if (i.Values.ContainsKey(Name))
            {
                return(i.Values[Name]);
            }

            return(null);
        }
Exemplo n.º 3
0
        public static void PutValue(string Name, object Value)
        {
            SceneUserData i = GetInstance();

            if (i.Values.ContainsKey(Name))
            {
                i.Values[Name] = Value;
            }
            else
            {
                i.Values.Add(Name, Value);
            }
        }