コード例 #1
0
	public override void OnInspectorGUI ()
	{
        UITweenColor tweencolor = target as UITweenColor;
		base.OnInspectorGUI ();

		EditorETweenUITools.OnDrawGUI<Graphic> (tweencolor.gameObject, tweencolor.listGraphic);

		if (GUI.changed) {
			EditorTools.SetDirty(tweencolor);
		}
	}
コード例 #2
0
 static int ToInit(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UITweenColor obj = (UITweenColor)ToLua.CheckObject(L, 1, typeof(UITweenColor));
         obj.ToInit();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #3
0
 static int Kill(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UITweenColor obj  = (UITweenColor)ToLua.CheckObject(L, 1, typeof(UITweenColor));
         bool         arg0 = LuaDLL.luaL_checkboolean(L, 2);
         obj.Kill(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
コード例 #4
0
    static int get_from(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenColor      obj = (UITweenColor)o;
            UnityEngine.Color ret = obj.from;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index from on a nil value" : e.Message));
        }
    }
コード例 #5
0
    static int set_to(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UITweenColor      obj  = (UITweenColor)o;
            UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
            obj.to = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index to on a nil value" : e.Message));
        }
    }