public void Update() { currentState.Update(); if (IsDamaged() && --frames_until_color_change == 0) { frames_until_color_change = frames_per_damage_color_change; damaged_frames_left--; currentState.setTextureIndex(damaged_frames_left % 4); } linkInventory.Update(); previousXPos = xPos; previousYPos = yPos; }
//Updates the player public void Update() { state.Update(); }