void OnEnable() { vpTarget = target as VideoPlayer; vpTarget.seekCompleted += SeekCompleted; UpdateSlider(); instance = this; }
void OnDisable() { vpTarget.seekCompleted -= SeekCompleted; instance = null; }