summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/UILib/IXUITweenTool.cs
blob: 77a287caf2bdc59430432e02d8a427bda5080051 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using UnityEngine;

namespace UILib
{
	public interface IXUITweenTool
	{
		bool bPlayForward { get; }

		int TweenGroup { get; }

		GameObject gameObject { get; }

		void SetTargetGameObject(GameObject go);

		void PlayTween(bool bForward, float duaration = -1f);

		void ResetTween(bool bForward);

		void ResetTweenByGroup(bool bForward, int group = 0);

		void ResetTweenExceptGroup(bool bForward, int group);

		void ResetTweenByCurGroup(bool bForward);

		void StopTween();

		void StopTweenByGroup(int group = 0);

		void StopTweenExceptGroup(int group);

		void SetPositionTweenPos(int group, Vector3 from, Vector3 to);

		void SetTweenGroup(int group);

		void SetTweenEnabledWhenFinish(bool enabled);

		void RegisterOnFinishEventHandler(OnTweenFinishEventHandler eventHandler);
	}
}