예제 #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();