Esempio n. 1
0
            private void OnDestroy()
            {
                UnityEngine.Object.Destroy((UnityEngine.Object) this.mScene);
                EventDialogBubble.DiscardAll();
                EventDialogBubbleCustom.DiscardAll();
                EventStandCharaController2.DiscardAll();
                for (int index = 0; index < this.Actions.Length; ++index)
                {
                    UnityEngine.Object.Destroy((UnityEngine.Object) this.Actions[index]);
                }
                if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)EventScript.Canvas, (UnityEngine.Object)null))
                {
                    return;
                }
                ((UnityEvent)((Button)((Component)EventScript.Canvas).GetComponent <Button>()).get_onClick()).RemoveListener(this.mClickAction);
                HoldGesture component = (HoldGesture)((Component)EventScript.Canvas).GetComponent <HoldGesture>();

                if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component, (UnityEngine.Object)null))
                {
                    // ISSUE: method pointer
                    component.OnHoldStart.RemoveListener(new UnityAction((object)this, __methodptr(OnDown)));
                    // ISSUE: method pointer
                    component.OnHoldEnd.RemoveListener(new UnityAction((object)this, __methodptr(OnUp)));
                }
                EventScript.DestroyCanvas();
            }
Esempio n. 2
0
 private void OnDestroy()
 {
     UnityEngine.Object.Destroy((UnityEngine.Object) this.mScene);
     EventDialogBubble.DiscardAll();
     EventDialogBubbleCustom.DiscardAll();
     EventStandCharaController2.DiscardAll();
     for (int index = 0; index < this.Actions.Length; ++index)
     {
         UnityEngine.Object.Destroy((UnityEngine.Object) this.Actions[index]);
     }
     if (!UnityEngine.Object.op_Inequality((UnityEngine.Object)EventScript.Canvas, (UnityEngine.Object)null))
     {
         return;
     }
     ((UnityEvent)((Button)((Component)EventScript.Canvas).GetComponent <Button>()).get_onClick()).RemoveListener(this.mClickAction);
     EventScript.DestroyCanvas();
 }