Ejemplo n.º 1
0
 public static void Kill(FastTween tween)
 {
     if (tween.Id == 0)
     {
         return;
     }
     FastTweenerComponent.Kill(tween);
 }
Ejemplo n.º 2
0
        public static void Init()
        {
            if (IsInitialized)
            {
                return;
            }

            instance      = new GameObject().AddComponent <FastTweenerComponent>();
            instance.name = "FastTweener";
            DontDestroyOnLoad(instance);
            taskManager = new TaskManager(FastTweener.Setting.TaskPoolSize);
        }
Ejemplo n.º 3
0
        public static void Init(FastTweenerSettings settings = null)
        {
            if (IsInitialized)
            {
                Debug.LogError(FastTweenerStringConstants.ALREADY_INITIALIZED);
                return;
            }
            if (settings != null)
            {
                FastTweener.settings = settings;
            }

            FastTweenerComponent.Init();
        }
Ejemplo n.º 4
0
        public override void OnInspectorGUI()
        {
            bool inited;
            int  tasksInPool;
            int  aliveTask;

            FastTweenerComponent.GetEditorData(out inited, out tasksInPool, out aliveTask);
            if (!inited)
            {
                EditorGUILayout.LabelField("Not inited yet.");
                return;
            }
            EditorGUILayout.Space();
            EditorGUILayout.LabelField("Tasks:", EditorStyles.boldLabel);
            ShowStats(aliveTask, tasksInPool);
        }
Ejemplo n.º 5
0
 //ease onComplete
 public static FastTween Float(float start, float end, float duration, Action <float> callback,
                               Ease ease, Action onComplete)
 {
     return(FastTweenerComponent.Float(start, end, duration, callback, ease, false, onComplete));
 }
Ejemplo n.º 6
0
 //ease ignoreTimescale onComplete
 public static FastTween Float(float start, float end, float duration, Action <float> callback,
                               Ease ease = Ease.Default, bool ignoreTimescale = false, Action onComplete = null)
 {
     return(FastTweenerComponent.Float(start, end, duration, callback, ease, ignoreTimescale, onComplete));
 }
Ejemplo n.º 7
0
 public static void SetOnComplete(FastTween tween, Action onComplete)
 {
     FastTweenerComponent.SetOnComplete(tween, onComplete);
 }
Ejemplo n.º 8
0
 public static bool GetIgnoreTimeScale(FastTween tween)
 {
     return(FastTweenerComponent.GetIgnoreTimeScale(tween));
 }
Ejemplo n.º 9
0
 public static void SetIgnoreTimeScale(FastTween tween, bool ignoreTimeScale)
 {
     FastTweenerComponent.SetIgnoreTimeScale(tween, ignoreTimeScale);
 }
Ejemplo n.º 10
0
 public static Ease GetEase(FastTween tween)
 {
     return(FastTweenerComponent.GetEase(tween));
 }
Ejemplo n.º 11
0
 public static void SetEase(FastTween tween, Ease ease)
 {
     FastTweenerComponent.SetEase(tween, ease);
 }
Ejemplo n.º 12
0
 public static bool IsAlive(FastTween tween)
 {
     return(FastTweenerComponent.IsAlive(tween));
 }
Ejemplo n.º 13
0
 public static FastTween Schedule(float delay, Action callback, bool ignoreTimescale = false)
 {
     return(FastTweenerComponent.Schedule(delay, callback, ignoreTimescale));
 }
Ejemplo n.º 14
0
 //onComplete
 public static FastTween Vector3(Vector3 start, Vector3 end, float duration, Action <Vector3> callback, Action onComplete)
 {
     return(FastTweenerComponent.Vector3(start, end, duration, callback, Ease.Default, false, onComplete));
 }
Ejemplo n.º 15
0
 //ignoreTimescale onComplete
 public static FastTween Vector3(Vector3 start, Vector3 end, float duration, Action <Vector3> callback,
                                 bool ignoreTimescale, Action onComplete = null)
 {
     return(FastTweenerComponent.Vector3(start, end, duration, callback, Ease.Default, ignoreTimescale, onComplete));
 }