Exemplo n.º 1
0
    private void Start()
    {
        unitSelection = FindObjectOfType <UnitSelection>();
        handler       = FindObjectOfType <RunHandler>();

        if (unit == handler.curHero)
        {
            unitSelection.CreateDisplay(unit, this.GetComponent <Button>());
        }
    }
Exemplo n.º 2
0
 public void ShowInfo()
 {
     unitSelection.CreateDisplay(unit, this.GetComponent <Button>());
 }