示例#1
0
 private void OnApplicationQuit()
 {
     _instance = null;
     Destroy(gameObject);
     _applicationIsQuitting = true;
 }
示例#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)));
 }
示例#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)));
 }
示例#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)));
 }
示例#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)));
 }
示例#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)));
 }