public override void PreStart() { if (!Object.op_Equality((Object)this.mBackGround, (Object)null)) { return; } this.mBackGround = EventBackGround.Find(); }
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); }