Ejemplo n.º 1
0
 // 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();
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     if (B == null)
     {
         B = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }