private void ExecuteTheDestroy() { VTP.removeInstance(this); //v2.1.9 update: this has to happen BEFORE destroyVideoObject or it won't get removed properly from the array. destroyVideoObject(); }
//called before the GameObject is destroyed. private void OnDestroy() { destroyVideoObject(); VTP.removeInstance(this); }