internal AnimationPlayableOutput(PlayableOutputHandle handle) { if (handle.IsValid()) { if (!handle.IsPlayableOutputOfType <AnimationPlayableOutput>()) { throw new InvalidCastException("Can't set handle: the playable is not an AnimationPlayableOutput."); } } this.m_Handle = handle; }
internal TexturePlayableOutput(PlayableOutputHandle handle) { if (handle.IsValid()) { if (!handle.IsPlayableOutputOfType <TexturePlayableOutput>()) { throw new InvalidCastException("Can't set handle: the playable is not an TexturePlayableOutput."); } } m_Handle = handle; }
internal AudioPlayableOutput(PlayableOutputHandle handle) { bool flag = handle.IsValid(); if (flag) { bool flag2 = !handle.IsPlayableOutputOfType <AudioPlayableOutput>(); if (flag2) { throw new InvalidCastException("Can't set handle: the playable is not an AudioPlayableOutput."); } } this.m_Handle = handle; }