Пример #1
0
 /// <summary>
 /// Set a new audio source curve to this <see cref="IntroloopPlayer">. The settings will be propagated to all <see cref="AudioSource"> it uses.
 /// </summary>
 public void SetAudioSourceCurveType(AudioSourceCurveType curveType, AnimationCurve audioCurve)
 {
     foreach (AudioSource aSource in InternalAudioSources)
     {
         aSource.SetCustomCurve(curveType, audioCurve);
     }
 }
Пример #2
0
    static int GetCustomCurve(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        AudioSource          obj  = LuaScriptMgr.GetUnityObject <AudioSource>(L, 1);
        AudioSourceCurveType arg0 = LuaScriptMgr.GetNetObject <AudioSourceCurveType>(L, 2);
        AnimationCurve       o    = obj.GetCustomCurve(arg0);

        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
Пример #3
0
    static int SetCustomCurve(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        AudioSource          obj  = LuaScriptMgr.GetUnityObject <AudioSource>(L, 1);
        AudioSourceCurveType arg0 = LuaScriptMgr.GetNetObject <AudioSourceCurveType>(L, 2);
        AnimationCurve       arg1 = LuaScriptMgr.GetNetObject <AnimationCurve>(L, 3);

        obj.SetCustomCurve(arg0, arg1);
        return(0);
    }
Пример #4
0
    static int SetCustomCurve(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 3);
        AudioSource          obj  = (AudioSource)LuaScriptMgr.GetUnityObjectSelf(L, 1, "AudioSource");
        AudioSourceCurveType arg0 = (AudioSourceCurveType)LuaScriptMgr.GetNetObject(L, 2, typeof(AudioSourceCurveType));
        AnimationCurve       arg1 = (AnimationCurve)LuaScriptMgr.GetNetObject(L, 3, typeof(AnimationCurve));

        obj.SetCustomCurve(arg0, arg1);
        return(0);
    }
Пример #5
0
    static int GetCustomCurve(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 2);
        AudioSource          obj  = (AudioSource)LuaScriptMgr.GetUnityObjectSelf(L, 1, "AudioSource");
        AudioSourceCurveType arg0 = (AudioSourceCurveType)LuaScriptMgr.GetNetObject(L, 2, typeof(AudioSourceCurveType));
        AnimationCurve       o    = obj.GetCustomCurve(arg0);

        LuaScriptMgr.PushObject(L, o);
        return(1);
    }
Пример #6
0
 public AnimationCurve GetCustomCurve(AudioSourceCurveType type)
 {
     throw new NotImplementedException("なにこれ");
 }
Пример #7
0
 public AnimationCurve GetCustomCurve(AudioSourceCurveType type)
 {
     return(AudioSource.GetCustomCurveHelper(this, type));
 }
Пример #8
0
 public void SetCustomCurve(AudioSourceCurveType type, AnimationCurve curve)
 {
     AudioSource.SetCustomCurveHelper(this, type, curve);
 }
Пример #9
0
 private static extern AnimationCurve GetCustomCurveHelper([NotNull("ArgumentNullException")] AudioSource source, AudioSourceCurveType type);
Пример #10
0
 extern static private AnimationCurve GetCustomCurveHelper(AudioSource source, AudioSourceCurveType type);
Пример #11
0
 IReadOnlyAnimationCurve IReadOnlyAudioSource.GetCustomCurve(AudioSourceCurveType type) => this.GetCustomCurve(type);
Пример #12
0
 public extern void SetCustomCurve(AudioSourceCurveType type, AnimationCurve curve);
Пример #13
0
 public void SetCustomCurve(AudioSourceCurveType type, AnimationCurve curve)
 {
     audio.SetCustomCurve(type, curve);
 }
Пример #14
0
 public extern AnimationCurve GetCustomCurve(AudioSourceCurveType type);
Пример #15
0
 public extern void SetCustomCurve(AudioSourceCurveType type, AnimationCurve curve);
Пример #16
0
 /// <summary>
 /// Make this <see cref="IntroloopPlayer"> audio curve to be like <paramref name="matchTo"> for a specific <see cref="AudioSourceCurveType">
 /// </summary>
 public void MatchAudioSourceCurveType(AudioSourceCurveType curveType, AudioSource matchTo)
 {
     SetAudioSourceCurveType(curveType, matchTo.GetCustomCurve(curveType));
 }
Пример #17
0
 public AnimationCurve GetCustomCurve(AudioSourceCurveType type)
 {
     return(audio.GetCustomCurve(type));
 }
Пример #18
0
 extern static private void SetCustomCurveHelper(AudioSource source, AudioSourceCurveType type, AnimationCurve curve);
Пример #19
0
 public extern AnimationCurve GetCustomCurve(AudioSourceCurveType type);
Пример #20
0
 public ReadOnlyAnimationCurve GetCustomCurve(AudioSourceCurveType type) => _obj.GetCustomCurve(type).AsReadOnly();