示例#1
0
    public void SetScreenByType(SCREENTYPE screenType)
    {
        int index = (int)screenType;

        for (int i = 0; i < Screens.Length; i++)
        {
            Screens[i].SetActive(false);
        }
        Screens[index].SetActive(true);
    }
示例#2
0
 public bool CheckPassWord(string password)
 {
     if (GameDataManager.FlowData.userCard.Password == null)
     {
         CurrentScreen = SCREENTYPE.WELCOME;
         Debug.LogError("系统错误,请重新插卡");
         return(false);
     }
     else
     {
         return(GameDataManager.FlowData.userCard.Password == password);
     }
 }
示例#3
0
 public bool CheckPassWord(string password)
 {
     if (_CurrentCardUser == null)
     {
         CurrentScreen = SCREENTYPE.WELCOME;
         Debug.LogError("系统错误,请重新插卡");
         return(false);
     }
     else
     {
         return(_CurrentCardUser.CheckPassword(password));
     }
 }
示例#4
0
 void Awake()
 {
     _Instance     = this;
     CurrentScreen = SCREENTYPE.WELCOME;
 }