示例#1
0
    public static GoTween alphaFrom(this SpriteRenderer self, float duration, float endValue, bool isRelative = false)
    {
        Color endColor = self.color;

        endColor.a = endValue;
        return(Go.from(self, duration, new GoTweenConfig().colorProp("color", endColor, isRelative)));
    }
    void Ativar()
    {
        var efeito = Camera.main.GetComponent <CC_FastVignette>();

        Go.from(efeito, 0.3f, new GoTweenConfig()
                .floatProp("pSharpness", -100f)
                .floatProp("pDarkness", 100f)
                .setEaseType(GoEaseType.BackInOut));
    }
示例#3
0
    public static NuvemDialogo MostrarMsg(string texto, Transform novaOrigem)
    {
        NuvemDialogo nuvem = Instantiate(Resources.Load <NuvemDialogo>("NuvemDialogo"));

        Go.from(nuvem.transform, 0.3f, new GoTweenConfig()
                .scale(Vector3.zero)
                .setEaseType(GoEaseType.QuartOut));
        nuvem.txtMsgPrincipal.text = texto;
        nuvem.origem = novaOrigem;
        return(nuvem);
    }
示例#4
0
    public static GoTween alphaFrom(this Material self, float duration, float endValue, string colorName = "_Color")
    {
#if UNITY_EDITOR
        if (!self.HasProperty(colorName))
        {
            Debug.LogWarning("Material " + self.name + " has no color named " + colorName, self);
        }
#endif

        Color endColor = self.color;
        endColor.a = endValue;
        return(Go.from(self, duration, new GoTweenConfig().materialColor(endColor, colorName)));
    }
示例#5
0
 static public int from_s(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (argc == 3)
         {
             System.Object a1;
             checkType(l, 1, out a1);
             System.Single a2;
             checkType(l, 2, out a2);
             GoTweenConfig a3;
             checkType(l, 3, out a3);
             var ret = Go.from(a1, a2, a3);
             pushValue(l, ret);
             return(1);
         }
         else if (argc == 4)
         {
             System.Object a1;
             checkType(l, 1, out a1);
             GoSpline a2;
             checkType(l, 2, out a2);
             System.Single a3;
             checkType(l, 3, out a3);
             GoTweenConfig a4;
             checkType(l, 4, out a4);
             var ret = Go.from(a1, a2, a3, a4);
             pushValue(l, ret);
             return(1);
         }
         return(error(l, "No matched override function to call"));
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#6
0
 public static GoTween colorFrom(this Material self, float duration, Color endValue, string colorName = "_Color")
 {
     return(Go.from(self, duration, new GoTweenConfig().materialColor(endValue, colorName)));
 }
示例#7
0
 public static GoTween scaleFrom(this Transform self, float duration, Vector3 endValue, bool isRelative = false)
 {
     return(Go.from(self, duration, new GoTweenConfig().scale(endValue, isRelative)));
 }
示例#8
0
 public static GoTween localEularAnglesFrom(this Transform self, float duration, Vector3 endValue, bool isRelative = false)
 {
     return(Go.from(self, duration, new GoTweenConfig().localEulerAngles(endValue, isRelative)));
 }
示例#9
0
 public static GoTween colorFrom(this Material self, float duration, float endValue, string propertyName)
 {
     return(Go.from(self, duration, new GoTweenConfig().materialFloat(endValue, propertyName)));
 }
 public static GoTween colorFrom(this Material self, float duration, Color endValue, GoMaterialColorType colorType = GoMaterialColorType.Color)
 {
     return(Go.from(self, duration, new GoTweenConfig().materialColor(endValue, colorType)));
 }
示例#11
0
 public static Tween localPositionFrom(this Transform self, float duration, Vector3 endValue, bool isRelative = false)
 {
     return(Go.from(self, duration, new TweenConfig().localPosition(endValue, isRelative)));
 }
 public static GoTween positionFrom(this Transform self, float duration, Vector3 endValue, float delay, bool isRelative = false)
 {
     return(Go.from(self, duration, new GoTweenConfig().position(endValue, isRelative).setDelay(delay)));
 }