Ejemplo n.º 1
0
 // Token: 0x06012C7E RID: 76926 RVA: 0x004CD9F0 File Offset: 0x004CBBF0
 public void SetStatus(GainRewardStatus status)
 {
     if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetStatusGainRewardStatus_hotfix != null)
     {
         this.m_SetStatusGainRewardStatus_hotfix.call(new object[]
         {
             this,
             status
         });
         return;
     }
     BJLuaObjHelper.IsSkipLuaHotfix = false;
     this.m_status = status;
     this.m_openGameObject.SetActive(status == GainRewardStatus.Got);
     this.m_closeGameObject.SetActive(status == GainRewardStatus.CanNotGet || status == GainRewardStatus.CanGet);
 }
Ejemplo n.º 2
0
    public static int GetStatus(IntPtr l)
    {
        int result;

        try
        {
            GainRewardButton gainRewardButton = (GainRewardButton)LuaObject.checkSelf(l);
            GainRewardStatus status           = gainRewardButton.GetStatus();
            LuaObject.pushValue(l, true);
            LuaObject.pushEnum(l, (int)status);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }