public override bool Equals(object obj) { if (!(obj is ClipSettings)) { return(false); } ClipSettings other = (ClipSettings)obj; return(this.timelineTrack == other.timelineTrack && this.triggers == other.triggers); }
// Request to play the first Sound or Music clip with the given name with default settings public static void Play(string clip) { ClipSettings c = GetClip(clip); if (c is SoundClip) { Play((SoundClip)c); } else if (c is MusicClip) { Play((MusicClip)c); } }