protected override void Awake() { base.Awake(); m_containerType = ContainerType.Control; m_controlType = ControlType.IMCDropdown; #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 AccordionElement() { if (m_FloatTweenRunner == null) { m_FloatTweenRunner = new TweenRunner <FloatTween>(); } m_FloatTweenRunner.Init(this); }
private void Awake() { _floatTweenRunner = new TweenRunner<FloatTween>(); _floatTweenRunner.Init(this); _canvasGroup = GetComponent<CanvasGroup>(); // Ensure it starts faded out _canvasGroup.alpha = 0f; }
protected UIImage() { if (m_ColorTweenRunner == null) { m_ColorTweenRunner = new TweenRunner <ColorTween>(); } m_ColorTweenRunner.Init(this); }
// Called by Unity prior to deserialization, // should not be called by users protected Graphic() { if (m_ColorTweenRunner == null) { m_ColorTweenRunner = new TweenRunner <ColorTween>(); } m_ColorTweenRunner.Init(this); useLegacyMeshGeneration = true; }
// Called by Unity prior to deserialization, // should not be called by users ProgressBarController() { if (m_FloatTweenRunner == null) { m_FloatTweenRunner = new TweenRunner <FloatTween>(); } m_FloatTweenRunner.Init(this); }
protected virtual void Awake() { m_FloatTweenRunner = new TweenRunner <FloatTween>(); m_FloatTweenRunner.Init(this); m_ColorTweenRunner = new TweenRunner <ColorTween>(); m_ColorTweenRunner.Init(this); m_VectorTweenRunner = new TweenRunner <VectorTween>(); m_VectorTweenRunner.Init(this); }
protected override void Awake() { #if UNITY_EDITOR if (!Application.isPlaying) { return; } #endif m_AlphaTweenRunner = new TweenRunner <FloatTween>(); m_AlphaTweenRunner.Init(this); if (_template) { _template.gameObject.SetActive(false); } }
protected override void Start() { m_AlphaTweenRunner = new TweenRunner <FloatTween>(); m_AlphaTweenRunner.Init(this); base.Start(); }