using System; using System.Collections.Generic; using System.Linq; using System.Text; using UnityEngine; namespace CommonUnity3D.UGUIAction { public interface IAction { /// /// 动作更新. /// /// void onUpdate(IActionCompment unit, float deltaTime); /// /// 动作开始. /// /// void onStart(IActionCompment unit); /// /// 动作停止. /// /// void onStop(IActionCompment unit, bool sendCallBack); /// /// 动作是否结束. /// /// bool IsEnd(); string GetActionType(); } public interface IActionCompment { void AddAction(IAction action); void RemoveAction(IAction action, bool sendCallBack); bool HasAction(IAction action); void RemoveAllAction(bool sendCallBack = false); void UpdateAction(float deltaTime); float X { set; get; } float Y { set; get; } Vector2 Scale { get; set; } Vector2 Position2D { get; set; } float Alpha { get; set; } } }