private void Awake() { m_pSubtitleText = transform.parent.Find("Subtitle").GetComponent <Text>(); PointHandle pHandle = transform.parent.GetComponentInChildren <PointHandle>(); pHandle.m_pSetSeek = Seek; pHandle.m_pGetCurrentTime = () => { if (m_nVideoLength_Sec == 0) { return(0); } else { float fValue = (m_fStartOffset + m_pAudio.time) / m_nVideoLength_Sec; return(fValue); } }; }
/// <summary> /// Creates the point handle to manipulate the radius of the circle. /// </summary> private void CreateRadiusHandle() { this.radiusHandle = this.handleManager.CreatePointHandle(this.managedCircle.StartPoint, HandleLocationType.InputPoint, HandleEffectType.Geometry); this.AttachHandlers(); }