protected override void Awake() { #if UNITY_EDITOR if (!Application.isPlaying) { return; } #endif m_AlphaTweenRunner = new TweenRunner <FloatTween>(); m_AlphaTweenRunner.Init(this); if (m_CaptionImage) { m_CaptionImage.enabled = (m_CaptionImage.sprite != null); } if (m_Template) { m_Template.gameObject.SetActive(false); } }
protected override void Start() { m_AlphaTweenRunner = new TweenRunner <FloatTween>(); m_AlphaTweenRunner.Init(this); base.Start(); RefreshShownValue(); }
protected override void Awake() { this.m_AlphaTweenRunner = new TweenRunner <FloatTween>(); this.m_AlphaTweenRunner.Init(this); if (this.m_CaptionImage) { this.m_CaptionImage.enabled = (this.m_CaptionImage.sprite != null); } if (this.m_Template) { this.m_Template.gameObject.SetActive(false); } }
protected override void Awake() { if (Application.isPlaying) { m_AlphaTweenRunner = new TweenRunner <FloatTween>(); m_AlphaTweenRunner.Init((MonoBehaviour)(object)this); if ((bool)(UnityEngine.Object)(object) m_CaptionImage) { ((Behaviour)(object)m_CaptionImage).enabled = (m_CaptionImage.sprite != null); } if ((bool)m_Template) { m_Template.gameObject.SetActive(false); } } }
public void StartTween(T info) { if (this.m_CoroutineContainer == null) { Debug.LogWarning("Coroutine container not configured... did you forget to call Init?"); return; } this.StopTween(); if (!this.m_CoroutineContainer.gameObject.activeInHierarchy) { info.TweenValue(1f); return; } this.m_Tween = TweenRunner <T> .Start(info); this.m_CoroutineContainer.StartCoroutine(this.m_Tween); }