Beispiel #1
0
 private void OnDestroy()
 {
     if (!Object.op_Equality((Object)this, (Object)Event2dFade.Instance))
     {
         return;
     }
     Event2dFade.Instance = (Event2dFade)null;
 }
Beispiel #2
0
 private void Awake()
 {
     if (Object.op_Inequality((Object)null, (Object)Event2dFade.Instance))
     {
         Object.Destroy((Object)this);
     }
     Event2dFade.Instance = this;
 }
Beispiel #3
0
 public override void PreStart()
 {
     if (Object.op_Inequality((Object)this.mEvent2dFade, (Object)null))
     {
         return;
     }
     this.mEvent2dFade = Event2dFade.Find();
     if (Object.op_Inequality((Object)this.mEvent2dFade, (Object)null))
     {
         return;
     }
     this.mEvent2dFade = Object.Instantiate(this.mResource.asset) as Event2dFade;
     ((Component)this.mEvent2dFade).get_transform().SetParent(((Component)this.ActiveCanvas).get_transform(), false);
     ((Component)this.mEvent2dFade).get_transform().SetAsLastSibling();
     ((Component)this.mEvent2dFade).get_gameObject().SetActive(false);
 }