Exemple #1
0
 void OnEnable()
 {
     PlayerInput.Paused = true;
     for (int i = 0; i < 3; i++)
     {
         PlayerAbility playerAbility = playerAbilityInventory.GetPlayerAbility(i);
         if (playerAbility != null)
         {
             if (AbilityHighlightedIndex == Constants.NullInt)
             {
                 AbilityHighlightedIndex = i;
             }
             Instantiate(uiAbilityIconPrefab, transform.GetChild(i)).sprite = playerAbility.AbilityIcon();
         }
     }
 }