Пример #1
0
        /**
         * <summary>Serialises appropriate GameObject values into a string.</summary>
         * <returns>The data, serialised as a string</returns>
         */
        public override string SaveData()
        {
            Sound sound = GetComponent <Sound>();

            SoundData soundData = new SoundData();

            soundData.objectID = constantID;
            soundData          = sound.GetSaveData(soundData);

            return(Serializer.SaveScriptData <SoundData> (soundData));
        }