Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     OnPlayerStatChange      += UpdatePlayerStats;
     OnPlayerInventoryChange += UpdatePlayerInventory;
     OnEnemyUpdate           += UpdateEnemyStats;
     playerInventoryText.text = "Items: ";
 }
Esempio n. 2
0
 void Start()
 {
     OnPlayerStatChange      += UpdatePlayerStats;
     OnPlayerInventoryChange += UpdatePlayerInventory;
     OnPlayerFloorChange     += UpdatePlayerFloor;
     OnEnemyUpdate           += UpdateEnemyStats;
     UIController.OnPlayerFloorChange();
 }
Esempio n. 3
0
 void Start()
 {
     OnPlayerStatChange        += UpdatePlayerStats;
     OnPlayerInventoryChange   += UpdatePlayerInventory;
     OnEnemyUpdate             += UpdateEnemyStats;
     OnPlayerUpdateActivate    += ActivateUpdateStat;
     OnPlayerUpdateDesactivate += DesactivateUpdateStat;
 }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        // UpdatePlayerStats and UpdatePlayerItems are the listeners
        // Add the two listeners to OnPlayerUpdateHandler
        OnPlayerStatChange  += UpdatePlayerStats;
        OnPlayerItemsChange += UpdatePlayerItems;

        // Add the UpdateEnemyStats listener to OnEnemyUpdateHandler
        OnEnemyUpdate += UpdateEnemyStats;
    }
Esempio n. 5
0
    // Use this for initialization
    void Start()
    {
        OnPlayerStatChange += UpdatePlayerStats;
        //OnPlayerStatChange += UpdatePlayerInventory; // TODO implement stat changes on items
        OnPlayerInventoryChange += UpdatePlayerInventory;
        OnEnemyUpdate           += UpdateEnemyStats;

        //Initialize header for inventory
        playerInventoryText.text = "Items: ";
    }
 void Start()
 {
     OnPlayerStatChange      += UpdatePlayerStats;
     OnPlayerInventoryChange += UpdatePlayerInventory;
     OnEnemyUpdate           += UpdateEnemyStats;
 }
Esempio n. 7
0
 public void OnDestroy()
 {
     OnPlayerStatChange      -= UpdatePlayerStats;
     OnPlayerInventoryChange -= UpdatePlayerInventory;
     OnEnemyUpdate           -= UpdateEnemyStats;
 }