using UnityEngine; using System; using System.Collections; namespace WPM { [Serializable] public class TickerBand { /// /// The vertical offset. -0.5f .. 0.5f /// [Range(-0.5f,0.5f)] public float verticalOffset; /// /// 0.01f .. 1.0f /// [Range(-0.01f,1.0f)] public float verticalSize; /// /// Background color for the ticker band /// public Color backgroundColor = new Color(0,0,0,0.9f); /// /// If false, will automatically hide if not texts is available on this ticker /// public bool autoHide = true; /// /// Reference to the TextMesh object /// [NonSerialized] public GameObject gameObject; public bool visible; /// /// Set it to 0 to disable scrolling (text will remain fixed for "duration" seconds) /// public float scrollSpeed = -0.1f; /// /// Fade speed for the ticker band. Set it to 0 to disable fade (instantly appears/disappears) /// public float fadeSpeed = 0.5f; /// /// Used internally to control the smooth appearance of the ticker band. /// [NonSerialized] public float alphaStart; [NonSerialized] public DateTime alphaTimer; [NonSerialized] public bool alphaChanging; } }