コード例 #1
0
 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;
 }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }