Beispiel #1
0
 public void SetData(AppointmentRuleVo vo, AppointmentModel appointmentModel, bool needactive = false)
 {
     appointmentModel.SetCurAppointmentRule(vo);
     if (needactive)
     {
         _loveStoryView.SetEmptyTexture();
         _loveStoryController.SetData(vo);
     }
     else
     {
         _loveStoryView.SetData(vo, appointmentModel);
     }
     //_loveStoryView.Show();
 }
Beispiel #2
0
    public void SetData(AppointmentRuleVo vo, AppointmentModel appointmentModel)
    {
        UserAppointmentVo uservo = appointmentModel.GetUserAppointment(vo.Id);

        appointmentModel.SetCurAppointmentRule(vo);
        _jumpFromCard = true;
        if (uservo == null || uservo.ActiveState == 0)
        {
            if (uservo == null)
            {
                Debug.LogError("uservo null");
            }

            _loveStoryView.SetEmptyTexture();
            _loveStoryController.SetData(vo);
        }
        else
        {
            _loveStoryView.SetData(vo, appointmentModel);
        }
    }