Esempio n. 1
0
 private void OnApplicationQuit()
 {
     _instance = null;
     Destroy(gameObject);
     _applicationIsQuitting = true;
 }
Esempio n. 2
0
 public static GoTween colorTo(this Material self, float duration, Color endValue, string colorName = "_Color")
 {
     return(Go.to(self, duration, new GoTweenConfig().materialColor(endValue, colorName)));
 }
Esempio n. 3
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)));
 }
Esempio n. 4
0
 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)));
 }
Esempio n. 5
0
 public static GoTween localPositionTo(this Transform self, float duration, Vector3 endValue, bool isRelative = false)
 {
     return(Go.to(self, duration, new GoTweenConfig().localPosition(endValue, isRelative)));
 }
Esempio n. 6
0
 public static GoTween eulerAnglesTo(this Transform self, float duration, Vector3 endValue, bool isRelative = false)
 {
     return(Go.to(self, duration, new GoTweenConfig().eulerAngles(endValue, isRelative)));
 }