// Start is called before the first frame update void Start() { if (String.Compare(PlayerPrefs.GetString("currentUser"), "admin") == 0) { AdminLoginText.SetActive(true); animSettings.Initialize(); uiSettings.Initialize(); animSettings2.Initialize(); uiSettings2.Initialize(); animSettings3.Initialize(); uiSettings3.Initialize(); animSettings4.Initialize(); uiSettings4.Initialize(); animSettings5.Initialize(); uiSettings5.Initialize(); } else { AdminLoginText.SetActive(false); animSettings3.Initialize(); uiSettings3.Initialize(); animSettings5.Initialize(); uiSettings5.Initialize(); } }
void FadeToolTipOut(UISettings uiSettings, AnimationSettings animSettings) { uiSettings.textColor.a = Mathf.Lerp(uiSettings.textColor.a, 0, animSettings.textSmooth * Time.deltaTime); uiSettings.text.color = uiSettings.textColor; uiSettings.textBoxColor.a = Mathf.Lerp(uiSettings.textBoxColor.a, 0, animSettings.textSmooth * Time.deltaTime); uiSettings.textBox.color = uiSettings.textBoxColor; if (uiSettings.textBoxColor.a < 0.01f) { uiSettings.opening = false; animSettings.Initialize(); uiSettings.Initialize(); lifeTimer = 0; } }
void Start() { animSettings.Initialize(); uiSettings.Initialize(); }