public override void PreStart()
 {
     if (!Object.op_Equality((Object)this.mBackGround, (Object)null))
     {
         return;
     }
     this.mBackGround = EventBackGround.Find();
 }
Exemplo n.º 2
0
 public static void DiscardAll()
 {
     using (List <EventBackGround> .Enumerator enumerator = EventBackGround.Instances.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             EventBackGround current = enumerator.Current;
             if (!((Component)current).get_gameObject().get_activeInHierarchy())
             {
                 Object.Destroy((Object)((Component)current).get_gameObject());
             }
         }
     }
     EventBackGround.Instances.Clear();
 }
Exemplo n.º 3
0
 public static EventBackGround Find()
 {
     using (List <EventBackGround> .Enumerator enumerator = EventBackGround.Instances.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             EventBackGround current = enumerator.Current;
             if (Object.op_Inequality((Object)current, (Object)null))
             {
                 return(current);
             }
         }
     }
     return((EventBackGround)null);
 }
 public override void PreStart()
 {
     if (!Object.op_Equality((Object)this.mBackGround, (Object)null))
     {
         return;
     }
     this.mBackGround = EventBackGround.Find();
     if (!Object.op_Equality((Object)this.mBackGround, (Object)null) || this.mBackGroundResource == null)
     {
         return;
     }
     this.mBackGround = Object.Instantiate(this.mBackGroundResource.asset) as EventBackGround;
     ((Component)this.mBackGround).get_transform().SetParent(((Component)this.ActiveCanvas).get_transform(), false);
     ((Component)this.mBackGround).get_transform().SetAsFirstSibling();
     ((Component)this.mBackGround).get_gameObject().SetActive(false);
 }
 public override void PreStart()
 {
     if (this.NewMaterial)
     {
         Shader.DisableKeyword("EVENT_MONOCHROME_ON");
         Shader.DisableKeyword("EVENT_SEPIA_ON");
     }
     if (!Object.op_Equality((Object)this.mBackGround, (Object)null))
     {
         return;
     }
     this.mBackGround = EventBackGround.Find();
     if (!Object.op_Equality((Object)this.mBackGround, (Object)null) || this.mBackGroundResource == null)
     {
         return;
     }
     this.mBackGround = Object.Instantiate(this.mBackGroundResource.asset) as EventBackGround;
     ((Component)this.mBackGround).get_transform().SetParent(((Component)this.ActiveCanvas).get_transform(), false);
     ((Component)this.mBackGround).get_transform().SetAsFirstSibling();
     ((Component)this.mBackGround).get_gameObject().SetActive(false);
 }