Beispiel #1
0
    // Token: 0x060017B1 RID: 6065 RVA: 0x00286594 File Offset: 0x00284794
    public void SetState(PetManager.EPetTrainDataState state)
    {
        this.m_State = state;
        switch (this.m_State)
        {
        case PetManager.EPetTrainDataState.Empty:
            this.m_Timer.gameObject.SetActive(false);
            this.m_TrainingBtn.gameObject.SetActive(true);
            this.m_ReceiveBtn.gameObject.SetActive(false);
            break;

        case PetManager.EPetTrainDataState.Training:
            this.m_Timer.gameObject.SetActive(true);
            this.m_TrainingBtn.gameObject.SetActive(false);
            this.m_ReceiveBtn.gameObject.SetActive(false);
            break;

        case PetManager.EPetTrainDataState.CanReceive:
            this.m_Timer.gameObject.SetActive(false);
            this.m_TrainingBtn.gameObject.SetActive(false);
            this.m_ReceiveBtn.gameObject.SetActive(true);
            break;

        case PetManager.EPetTrainDataState.Received:
            this.m_Timer.gameObject.SetActive(false);
            this.m_TrainingBtn.gameObject.SetActive(true);
            this.m_ReceiveBtn.gameObject.SetActive(false);
            break;
        }
    }
Beispiel #2
0
 // Token: 0x060027D6 RID: 10198 RVA: 0x0043FDA4 File Offset: 0x0043DFA4
 public void SetState(PetManager.EPetTrainDataState state)
 {
     this.m_State = state;
     if (state == PetManager.EPetTrainDataState.Empty || state == PetManager.EPetTrainDataState.Closed || state == PetManager.EPetTrainDataState.NextOpen)
     {
         this.Empty();
     }
 }
Beispiel #3
0
 // Token: 0x060027D1 RID: 10193 RVA: 0x0043FC98 File Offset: 0x0043DE98
 public PetTraining(PetManager.EPetTrainDataState state)
 {
     this.m_State                 = state;
     this.m_CoachHeroCount        = 0;
     this.m_TotalExp              = 0u;
     this.m_CancelExp             = 0u;
     this.m_PetTrainingSet        = new PetTrainingSet(100);
     this.m_EventTime.BeginTime   = 0L;
     this.m_EventTime.RequireTime = 0u;
     this.bHasInstance            = true;
 }