void Start() { m_EasingGraphManager = FindObjectOfType <EasingGraphManager>(); m_SlideWidth = m_PanelRectTransform.sizeDelta.x; m_RectTransform = GetComponent <RectTransform>(); easeEquationIndex = m_PanelEaseEq.value; m_PanelNumEquations.text = m_EasingGraphManager.numOfUsedEquations.ToString(); }
static public T Begin <T>(GameObject go, float start, float offset, EasingEquationsDouble.Equations easeEquation, EasingGraphManager easingGraphManager) where T : EasingDrawer { T component = go.GetComponent <T>(); if (null == component) { component = go.AddComponent <T>(); } component.m_EasingGraphManager = easingGraphManager; component.m_Equation = easeEquation; component.m_Start = start; component.m_Offset = offset; component.enabled = true; return(component); }