/// <summary> /// /// </summary> void Awake() { if (FindObjectOfType <bl_DataBase>() == null) { Instantiate(DataBasePrefab); } Ban = FindObjectOfType <bl_BanSystem>(); SignIn = transform.GetComponentInChildren <bl_SignIn>(true); AdminPanelButon.SetActive(false); ClanButton.SetActive(false); SetPlayAsGuestButtonActive(false); }
/// <summary> /// /// </summary> void Awake() { if (FindObjectOfType <bl_DataBase>() == null) { Instantiate(DataBasePrefab); } DataBase = FindObjectOfType <bl_DataBase>(); Ban = FindObjectOfType <bl_BanSystem>(); SignIn = transform.GetComponentInChildren <bl_SignIn>(true); if (GuestButton != null) { GuestButton.interactable = false; } AdminPanelButon.SetActive(false); ClanButton.SetActive(false); }