Exemplo n.º 1
0
    void Start()
    {
        GameObject bc = GameObject.Find("BuildCreator");

        objectCreator  = (ObjectCreator)bc.GetComponent(typeof(ObjectCreator));
        unitOperations = new UnitOperations();
        GameObject bCntrl = GameObject.Find("ButtonScrollList");

        buttonControl = (ButtonControl)bCntrl.GetComponent(typeof(ButtonControl));
    }
 public void SetText(string textString)
 {
     unitOperations   = new UnitOperations();
     barrackText.text = textString;
     gameObject.name  = textString;
 }