private void Awake() { this.sequenceBtnCreator = new SequenceBtnCreatorHelper(this as ISequenceBtnCreator); this.sequenceBtnCreator.SetRectTransform(this.rt); FrontUIAction ftUIAction = FindObjectOfType <FrontUIAction>(); if (ftUIAction == null) { return; } this.sequenceBtnCreator.CreateButtons(ftUIAction as IUIAction, this.rt); }
private void OnDestroy() { this.sequenceBtnCreator = null; }