血条动画
This commit is contained in:
parent
173b47020f
commit
d6b0cd71fd
@ -7,6 +7,9 @@ using UnityEngine.UI;
|
|||||||
using System.Net.NetworkInformation;
|
using System.Net.NetworkInformation;
|
||||||
using System.Net.Sockets;
|
using System.Net.Sockets;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using DG.Tweening;
|
||||||
|
using DG.Tweening.Core;
|
||||||
|
using DG.Tweening.Plugins.Options;
|
||||||
|
|
||||||
namespace BF
|
namespace BF
|
||||||
{
|
{
|
||||||
@ -252,6 +255,13 @@ namespace BF
|
|||||||
return Convert.ToInt64(result);
|
return Convert.ToInt64(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static TweenerCore<float, float, FloatOptions> DOBFSliderValue(BFSlider target, float endValue, float duration, bool snapping = false)
|
||||||
|
{
|
||||||
|
TweenerCore<float, float, FloatOptions> t = DOTween.To(() => target.value, x => target.value = x, endValue, duration);
|
||||||
|
t.SetOptions(snapping).SetTarget(target);
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
|
||||||
// 从Sha1证书签名中提取keyhash给facebook等sdk用
|
// 从Sha1证书签名中提取keyhash给facebook等sdk用
|
||||||
// 需要去GooglePlayConsle后台查看证书的sha1
|
// 需要去GooglePlayConsle后台查看证书的sha1
|
||||||
public static string GetAndroidSignKeyHash()
|
public static string GetAndroidSignKeyHash()
|
||||||
|
|||||||
@ -31,7 +31,7 @@ namespace XLua.CSObjectWrap
|
|||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 25, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 26, 0, 0);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFreeChar", _m_GetFreeChar_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetFreeChar", _m_GetFreeChar_xlua_st_);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetConfigChar", _m_GetConfigChar_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetConfigChar", _m_GetConfigChar_xlua_st_);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "IsNull", _m_IsNull_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "IsNull", _m_IsNull_xlua_st_);
|
||||||
@ -54,6 +54,7 @@ namespace XLua.CSObjectWrap
|
|||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetEnvironmentTickCount", _m_GetEnvironmentTickCount_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetEnvironmentTickCount", _m_GetEnvironmentTickCount_xlua_st_);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDataSecretKey", _m_GetDataSecretKey_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetDataSecretKey", _m_GetDataSecretKey_xlua_st_);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRewardNumber", _m_GetRewardNumber_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRewardNumber", _m_GetRewardNumber_xlua_st_);
|
||||||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "DOBFSliderValue", _m_DOBFSliderValue_xlua_st_);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAndroidSignKeyHash", _m_GetAndroidSignKeyHash_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAndroidSignKeyHash", _m_GetAndroidSignKeyHash_xlua_st_);
|
||||||
|
|
||||||
|
|
||||||
@ -696,6 +697,53 @@ namespace XLua.CSObjectWrap
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _m_DOBFSliderValue_xlua_st_(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||||
|
|
||||||
|
if(gen_param_count == 4&& translator.Assignable<BF.BFSlider>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4))
|
||||||
|
{
|
||||||
|
BF.BFSlider _target = (BF.BFSlider)translator.GetObject(L, 1, typeof(BF.BFSlider));
|
||||||
|
float _endValue = (float)LuaAPI.lua_tonumber(L, 2);
|
||||||
|
float _duration = (float)LuaAPI.lua_tonumber(L, 3);
|
||||||
|
bool _snapping = LuaAPI.lua_toboolean(L, 4);
|
||||||
|
|
||||||
|
var gen_ret = BF.Utils.DOBFSliderValue( _target, _endValue, _duration, _snapping );
|
||||||
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if(gen_param_count == 3&& translator.Assignable<BF.BFSlider>(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
|
||||||
|
{
|
||||||
|
BF.BFSlider _target = (BF.BFSlider)translator.GetObject(L, 1, typeof(BF.BFSlider));
|
||||||
|
float _endValue = (float)LuaAPI.lua_tonumber(L, 2);
|
||||||
|
float _duration = (float)LuaAPI.lua_tonumber(L, 3);
|
||||||
|
|
||||||
|
var gen_ret = BF.Utils.DOBFSliderValue( _target, _endValue, _duration );
|
||||||
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
|
||||||
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.Utils.DOBFSliderValue!");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetAndroidSignKeyHash_xlua_st_(RealStatePtr L)
|
static int _m_GetAndroidSignKeyHash_xlua_st_(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user