private void OnApplicationQuit() { _instance = null; Destroy(gameObject); _applicationIsQuitting = true; }
public static GoTween colorTo(this Material self, float duration, Color endValue, string colorName = "_Color") { return(Go.to(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 shake(this Transform self, float duration, Vector3 shakeMagnitude, GoShakeType shakeType = GoShakeType.Position, int frameMod = 1, bool useLocalProperties = false) { return(Go.to(self, duration, new GoTweenConfig().shake(shakeMagnitude, shakeType, frameMod, useLocalProperties))); }
public static GoTween localPositionTo(this Transform self, float duration, Vector3 endValue, bool isRelative = false) { return(Go.to(self, duration, new GoTweenConfig().localPosition(endValue, isRelative))); }
public static GoTween eulerAnglesTo(this Transform self, float duration, Vector3 endValue, bool isRelative = false) { return(Go.to(self, duration, new GoTweenConfig().eulerAngles(endValue, isRelative))); }