Esempio n. 1
0
    public static void ColorTween(GameObject go, float duration, Color color,
                                  int style = 0, int method = 0, LuaFunction finished = null, bool newObj = true)
    {
        UnityAction action = () =>
        {
            if (finished != null)
            {
                finished.Call();
            }
        };

        TweenColor.Tween(go, duration, color, (TweenMain.Style)style, (TweenMain.Method)method, (finished != null)?action:null, newObj);
    }