// Start is called before the first frame update void Start() { bandolier = Bandolier.B; //GetComponent<Button>().onClick.AddListener(delegate () { DisplayChoice(int.Parse(gameObject.transform.GetChild(6).GetComponent<Text>().text), gameObject.transform); }); menuLoaded = false; es = EventSystem.current; UpdateWhichActive(); }
private void Awake() { if (B == null) { B = this; } else { Destroy(this.gameObject); } }