private void Start() { unitSelection = FindObjectOfType <UnitSelection>(); handler = FindObjectOfType <RunHandler>(); if (unit == handler.curHero) { unitSelection.CreateDisplay(unit, this.GetComponent <Button>()); } }
public void ShowInfo() { unitSelection.CreateDisplay(unit, this.GetComponent <Button>()); }