Beispiel #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;
     }
 }
Beispiel #2
0
 // Use this for initialization
 private void Start()
 {
     if (!SaveLoad.started)
     {
         StaticInits.Start();
         SaveLoad.Start();
         new ControlPanel();
         new PlayerCharacter();
         #if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
         Misc.WindowName = GlobalControls.crate ? ControlPanel.instance.WinodwBsaisNmae : ControlPanel.instance.WindowBasisName;
         #endif
         SaveLoad.LoadAlMighty();
         LuaScriptBinder.Set(null, "ModFolder", MoonSharp.Interpreter.DynValue.NewString("@Title"));
         UnitaleUtil.AddKeysToMapCorrespondanceList();
     }
     GameObject firstCamera = GameObject.Find("Main Camera");
     firstCamera.SetActive(false);
     if (GameObject.Find("Main Camera"))
     {
         Destroy(firstCamera);
     }
     else
     {
         firstCamera.SetActive(true);
     }
     tmName.SetHorizontalSpacing(2);
     tmName.SetFont(SpriteFontRegistry.Get(SpriteFontRegistry.UI_DEFAULT_NAME));
     diff    = calcTotalLength(tmName);
     actualX = tmName.transform.localPosition.x;
     actualY = tmName.transform.localPosition.y;
     if (GlobalControls.crate)
     {
         Logo.GetComponent <SpriteRenderer>().enabled      = false;
         LogoCrate.GetComponent <SpriteRenderer>().enabled = true;
     }
     DontDestroyOnLoad(Camera.main.gameObject);
     StartCoroutine(TitlePhase1());
 }