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)); }
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); }
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))); }
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)); } }
public static GoTween colorFrom(this Material self, float duration, Color endValue, string colorName = "_Color") { return(Go.from(self, duration, new GoTweenConfig().materialColor(endValue, colorName))); }
public static GoTween scaleFrom(this Transform self, float duration, Vector3 endValue, bool isRelative = false) { return(Go.from(self, duration, new GoTweenConfig().scale(endValue, isRelative))); }
public static GoTween localEularAnglesFrom(this Transform self, float duration, Vector3 endValue, bool isRelative = false) { return(Go.from(self, duration, new GoTweenConfig().localEulerAngles(endValue, isRelative))); }
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))); }
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))); }