コード例 #1
0
 public VolumeAnimationProperty(UnifiedAudioSource audioSource, float startValue, float targetValue) : base(
         startValue, targetValue)
 {
     this.audioSource = audioSource;
 }
コード例 #2
0
    static int _CreateNova_VolumeAnimationProperty(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2 && TypeChecker.CheckTypes <Nova.UnifiedAudioSource, float>(L, 1))
            {
                Nova.UnifiedAudioSource arg0 = (Nova.UnifiedAudioSource)ToLua.ToObject(L, 1);
                float arg1 = (float)LuaDLL.lua_tonumber(L, 2);
                Nova.VolumeAnimationProperty obj = new Nova.VolumeAnimationProperty(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 2 && TypeChecker.CheckTypes <Nova.AudioController, float>(L, 1))
            {
                Nova.AudioController arg0 = (Nova.AudioController)ToLua.ToObject(L, 1);
                float arg1 = (float)LuaDLL.lua_tonumber(L, 2);
                Nova.VolumeAnimationProperty obj = new Nova.VolumeAnimationProperty(arg0, arg1);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <Nova.UnifiedAudioSource, float, Nova.UseRelativeValue>(L, 1))
            {
                Nova.UnifiedAudioSource arg0 = (Nova.UnifiedAudioSource)ToLua.ToObject(L, 1);
                float arg1 = (float)LuaDLL.lua_tonumber(L, 2);
                Nova.UseRelativeValue        arg2 = (Nova.UseRelativeValue)ToLua.ToObject(L, 3);
                Nova.VolumeAnimationProperty obj  = new Nova.VolumeAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <Nova.UnifiedAudioSource, float, float>(L, 1))
            {
                Nova.UnifiedAudioSource arg0 = (Nova.UnifiedAudioSource)ToLua.ToObject(L, 1);
                float arg1 = (float)LuaDLL.lua_tonumber(L, 2);
                float arg2 = (float)LuaDLL.lua_tonumber(L, 3);
                Nova.VolumeAnimationProperty obj = new Nova.VolumeAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <Nova.AudioController, float, Nova.UseRelativeValue>(L, 1))
            {
                Nova.AudioController arg0 = (Nova.AudioController)ToLua.ToObject(L, 1);
                float arg1 = (float)LuaDLL.lua_tonumber(L, 2);
                Nova.UseRelativeValue        arg2 = (Nova.UseRelativeValue)ToLua.ToObject(L, 3);
                Nova.VolumeAnimationProperty obj  = new Nova.VolumeAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <Nova.AudioController, float, float>(L, 1))
            {
                Nova.AudioController arg0 = (Nova.AudioController)ToLua.ToObject(L, 1);
                float arg1 = (float)LuaDLL.lua_tonumber(L, 2);
                float arg2 = (float)LuaDLL.lua_tonumber(L, 3);
                Nova.VolumeAnimationProperty obj = new Nova.VolumeAnimationProperty(arg0, arg1, arg2);
                ToLua.PushObject(L, obj);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Nova.VolumeAnimationProperty.New"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
コード例 #3
0
 public VolumeAnimationProperty(UnifiedAudioSource audioSource, float deltaValue,
                                UseRelativeValue useRelativeValue) : base(deltaValue, useRelativeValue)
 {
     this.audioSource = audioSource;
 }