示例#1
0
 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();
 }
示例#2
0
 void Awake()
 {
     singleton = this;
 }