public void Update(SkillTree s) { previous_active = active; // check conditions for this skill to activate active = check_conditions(s); // possible change if (active_status_changed()) { // depending on current active status - add or remove power up from palyer's passive skill set if (active) { // add } else { // remove } } }