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