예제 #1
0
 private void Awake()
 {
     ChangeCareerUIView.Instance = this;
     this.m_info1          = base.get_transform().FindChild("Layer1Info").get_gameObject().AddComponent <ChangeCareerInfo>();
     this.m_info2          = base.get_transform().FindChild("Layer2Info").get_gameObject().AddComponent <ChangeCareerInfo>();
     this.mBackgroundImage = base.FindTransform("BackgroundImage");
 }
예제 #2
0
 public void SetCurrentInfo(ChangeCareerInfo info)
 {
     this.ShowAnimation(false);
     this.m_isIn = false;
     this.m_info1.Show(false, false);
     this.m_info2.Show(false, false);
     if (info == this.m_info1)
     {
         this.m_info1.SetCareerPos(-615f, -86f);
         this.m_info1.SetCareerButtonClick(false);
         this.m_info1.SetCareerButtonBlack(false);
         this.mBackgroundImage.set_localRotation(Quaternion.Euler(0f, 180f, 0f));
     }
     else
     {
         this.m_info2.SetCareerPos(515f, 113f);
         this.m_info2.SetCareerButtonClick(false);
         this.m_info2.SetCareerButtonBlack(false);
         this.mBackgroundImage.set_localRotation(Quaternion.get_identity());
     }
     this.m_currentInfo = info;
     this.m_currentInfo.Show(true, true);
     this.m_currentInfo.ShowAnimation(true);
     this.m_currentInfo.RefreshAll();
 }
예제 #3
0
    private void ResetAll()
    {
        this.m_isIn = true;
        this.ShowAnimation(true);
        this.m_currentInfo = null;
        int changeCareerID = ChangeCareerManager.GetChangeCareerID(0);

        if (changeCareerID > 0)
        {
            this.m_info1.SetCareerPos(-500f, 34f);
            this.m_info1.SetCareerButtonClick(true);
            if (ChangeCareerManager.Instance.GetTaskFirstTime() || ChangeCareerManager.Instance.IsCareerChangedOrSelectedChange(changeCareerID))
            {
                this.m_info1.SetCareerButtonBlack(false);
            }
            else
            {
                this.m_info1.SetCareerButtonBlack(true);
            }
            this.m_info1.profession = changeCareerID;
            this.m_info1.Show(true, false);
            this.m_info1.ShowAnimation(false);
        }
        int changeCareerID2 = ChangeCareerManager.GetChangeCareerID(1);

        if (changeCareerID2 > 0)
        {
            this.m_info2.SetCareerPos(405f, 4f);
            this.m_info2.SetCareerButtonClick(true);
            if (ChangeCareerManager.Instance.GetTaskFirstTime() || ChangeCareerManager.Instance.IsCareerChangedOrSelectedChange(changeCareerID2))
            {
                this.m_info2.SetCareerButtonBlack(false);
            }
            else
            {
                this.m_info2.SetCareerButtonBlack(true);
            }
            this.m_info2.profession = changeCareerID2;
            this.m_info2.Show(true, false);
            this.m_info2.ShowAnimation(false);
        }
    }