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);
    }