Ejemplo n.º 1
0
        private void internal_LoadUser(FileData aData)
        {
#if UNITY_WEBPLAYER
            setVerdantStoryDefault();
            List<InputAxis>.Enumerator iterator = m_Axis.GetEnumerator();
            while (iterator.MoveNext())
            {
                if (iterator.Current != null)
                {
                    iterator.Current.load();
                }
            }
#else
            if (aData == null)
            {
                return;
            }
            InputAxis[] loadedAxis = aData.get<InputAxis>();
            if (loadedAxis != null)
            {
                clear();
                for (int i = 0; i < loadedAxis.Length; i++)
                {
                    m_Axis.Add(loadedAxis[i]);
                }
            }
#endif
        }
Ejemplo n.º 2
0
        private void internal_LoadUser(string aUser)
        {
#if UNITY_WEBPLAYER
            setVerdantStoryDefault();
            List<InputAxis>.Enumerator iterator = m_Axis.GetEnumerator();
            while (iterator.MoveNext())
            {
                if (iterator.Current != null)
                {
                    iterator.Current.load();
                }
            }
#else
            FileData file = new FileData("Input_" + aUser);
            file.load();
            InputAxis[] loadedAxis = file.get<InputAxis>();
            if (loadedAxis != null)
            {
                clear();
                for (int i = 0; i < loadedAxis.Length; i++)
                {
                    m_Axis.Add(loadedAxis[i]);
                }
            }
#endif
        }