public int ScoreToWash = 0; //the score which use for translte the state from the fighting to washing private void Update() { // If the current health is less than or equal to zero... if (ScoreToWash == 10) { gameplayFSMManager.ChangeToWashing(); } }