예제 #1
0
        public static void Notify_SoundEvent(SoundDef def, SoundInfo info)
        {
            if (!DebugViewSettings.writeSoundEventsRecord)
            {
                return;
            }
            string str;

            if (def == null)
            {
                str = "null: ";
            }
            else if (def.isUndefined)
            {
                str = "Undefined: ";
            }
            else
            {
                str = ((!def.sustain) ? "OneShot: " : "SustainerSpawn: ");
            }
            string str2 = (def == null) ? "null" : def.defName;
            string str3 = str + str2 + " - " + info.ToString();

            DebugSoundEventsLog.CreateRecord(str3);
        }
예제 #2
0
        public static void Notify_SustainerEnded(Sustainer sustainer, SoundInfo info)
        {
            string str = "SustainerEnd: " + sustainer.def.defName + " - " + info.ToString();

            DebugSoundEventsLog.CreateRecord(str);
        }