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); }
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); } }
public bool CheckPassWord(string password) { if (_CurrentCardUser == null) { CurrentScreen = SCREENTYPE.WELCOME; Debug.LogError("系统错误,请重新插卡"); return(false); } else { return(_CurrentCardUser.CheckPassword(password)); } }
void Awake() { _Instance = this; CurrentScreen = SCREENTYPE.WELCOME; }