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