private void Start() { //inicializacia mapy a UIcka CreateMap(); unitManager = UnitManager.singleton; interfaceManager = InterfaceManager.singleton; spawnNode = GetNodeFromWorldPosition(spawnTransform.position); spawnPos = GetWorldPositionFromNode(spawnNode); //inicializacia textu v buttonoch stopText.text = stopAbilityUsesLeft.ToString(); umbrellaText.text = umbrellaAbilityUsesLeft.ToString(); digDownText.text = digDownAbilityUsesLeft.ToString(); digForwardText.text = digForwardAbilityUsesLeft.ToString(); explodeText.text = explodeAbilityUsesLeft.ToString(); }
void Awake() { singleton = this; }