void PauseTextCreator () {
				string buttonName = "Game Paused";
				GameObject statsButton = AddTextOnly ();
				TextMeshes ttm = statsButton.GetComponent<TextMeshes> ();
				statsButton.name = buttonName;		
				ttm.ThisStart ();
				ttm.ChangeText (buttonName);
				statsButton.transform.parent = subMenuHolder.transform;
				statsButton.transform.localPosition = new Vector3 (0, 1f, 0);

		}
Beispiel #2
0
    void CreditSound()
    {
        string     buttonName  = "Sound:";
        GameObject creditsText = AddTextOnly();
        TextMeshes ttm         = creditsText.GetComponent <TextMeshes> ();

        creditsText.name = buttonName;
        ttm.ThisStart();
        ttm.ChangeText(buttonName);
        creditsText.transform.parent        = subMenuHolder.transform;
        creditsText.transform.localPosition = new Vector3(0, -2f, 0);
    }
Beispiel #3
0
    void CreditArtName()
    {
        string     buttonName  = "opengameart.org/users/kenney";
        GameObject creditsText = AddTextOnly();
        TextMeshes ttm         = creditsText.GetComponent <TextMeshes> ();

        creditsText.name = buttonName;
        ttm.ThisStart();
        ttm.ChangeText(buttonName);
        creditsText.transform.parent        = subMenuHolder.transform;
        creditsText.transform.localPosition = new Vector3(0, -1f, 0);
    }
    // Use this for initialization
    void Start()
    {
        //Objetos inicializados para coleta de componentes.
        GameObject f = GameObject.Find ("Frags");
        fragmentos = f.GetComponent<SeusFragmentos> ();

        GameObject i = GameObject.Find ("inventario 2");
        invent = i.GetComponent<Inventario> ();

        GameObject t = GameObject.Find ("TextMeshes");
        texts = t.GetComponent<TextMeshes> ();
    }
    private void TimePlayerPlayedCreator()
    {
        string textName = "Time Played";

        timePlayerPlayed = AddTextOnly();
        TextMesh tm = timePlayerPlayed.GetComponent <TextMesh> ();

        tm.name = textName;
        timePlayerPlayed.transform.parent        = subMenuHolder.transform;
        timePlayerPlayed.transform.localPosition = new Vector3(0, 0, 0);
        tm.text = timePlayed;
        TextMeshes ttm = timePlayerPlayed.GetComponent <TextMeshes> ();

        ttm.ThisStart();
    }