Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     OnPlayerStatChange      += UpdatePlayerStats;
     OnPlayerInventoryChange += UpdatePlayerInventory;
     OnEnemyUpdate           += UpdateEnemyStats;
     playerInventoryText.text = "Items: ";
 }
Ejemplo n.º 2
0
 void Start()
 {
     OnPlayerStatChange      += UpdatePlayerStats;
     OnPlayerInventoryChange += UpdatePlayerInventory;
     OnPlayerFloorChange     += UpdatePlayerFloor;
     OnEnemyUpdate           += UpdateEnemyStats;
     UIController.OnPlayerFloorChange();
 }
Ejemplo n.º 3
0
 void Start()
 {
     OnPlayerStatChange        += UpdatePlayerStats;
     OnPlayerInventoryChange   += UpdatePlayerInventory;
     OnEnemyUpdate             += UpdateEnemyStats;
     OnPlayerUpdateActivate    += ActivateUpdateStat;
     OnPlayerUpdateDesactivate += DesactivateUpdateStat;
 }
Ejemplo 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;
    }
Ejemplo 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;
 }
Ejemplo n.º 7
0
 public void OnDestroy()
 {
     OnPlayerStatChange      -= UpdatePlayerStats;
     OnPlayerInventoryChange -= UpdatePlayerInventory;
     OnEnemyUpdate           -= UpdateEnemyStats;
 }