Пример #1
0
 private void Start()
 {
     if (GlobalControls.crate)
     {
         Logo.GetComponent <Image>().enabled      = false;
         LogoCrate.GetComponent <Image>().enabled = true;
         Desc1.GetComponent <Text>().text         = "GO TO /R/UNITLAE. FOR UPDTAES!!!!!";
         Desc2.GetComponent <Text>().text         = "NO RELESLING HERE!!! IT'S RFEE!!! OR TUBY FEX WILL BE ANGER!!! U'LL HVAE A BED TMIE!!!";
         Desc3.GetComponent <Text>().text         = "SPACE OR KLIK TO\n<color='#ff0000'>PALY MODS!!!!!</color>";
         Desc4.GetComponent <Text>().text         = "PRSES O TO\n<color='#ffff00'>OOVERWURL!!!!!</color>";
         Desc5.GetComponent <Text>().text         = "<b><color='red'>KNOW YUOR CODE</color> R U'LL HVAE A BED TMIE!!!</b>";
         Version.GetComponent <Text>().text       = "v" + Random.Range(0, 9) + "." + Random.Range(0, 9) + "." + Random.Range(0, 9);
     }
     else if (Random.Range(0, 1000) == 021)
     {
         Logo.GetComponent <Image>().enabled = false;
         Version.GetComponent <Transform>().localPosition = new Vector3(0f, 160f, 0f);
         Version.GetComponent <Text>().color = new Color(1f, 1f, 1f, 1f);
         Version.GetComponent <Text>().text  = "Not Unitale v0.2.1a";
     }
     else
     {
         Version.GetComponent <Text>().text = "v" + GlobalControls.CYFversion;
     }
 }
Пример #2
0
    // The mod select screen can take some extra time to load,
    // because it now searches for encounter files on top of mods.
    // To compensate, this function will add "Loading" text to the Disclaimer screen
    // whenever it's time to go to the mod select menu.
    private IEnumerator ModSelect()
    {
        Desc5.GetComponent <Text>().text = GlobalControls.crate ? "LAODING MODS!!!!!" : "Loading mods...";
        yield return(new WaitForEndOfFrame());

        GlobalControls.modDev = true;
        DiscordControls.StartModSelect(false);
        SceneManager.LoadScene("ModSelect");
    }