Exemplo n.º 1
0
    void IResourceChangeListener.OnResourceChange(PlayerResources.PlayerResource resource, int amount)
    {
        switch (resource)
        {
        case PlayerResources.PlayerResource.OVERALL_BLOOD:
            overallBloodCounter.text = "Overall Blood: " + amount;
            overallBloodBounce.Play("UIBounce");
            break;

        case PlayerResources.PlayerResource.SELECTED_BLOOD:
            selectedBloodCounter.text = "Selected Blood: " + amount;
            break;

        default:
            throw new NotYetImplementedException("Resource type not implemented");
        }
    }
Exemplo n.º 2
0
 public void OnResourceChange(PlayerResources.PlayerResource resource, int amount)
 {
     TriggerBuildChoiceUpdate();
 }