public void Start() { mm = FindObjectOfType <MenuMenager>(); //finding the text on the Button gameObject buttonText = GetComponentInChildren <Text>(); buttonText.text = "Buy " + buttonValue + "Credits"; }
void Awake() { instance = this; }