private bool getRightItemFlagForCharacter() { bool flag = false; switch (getEnemyName(enemy)) { case "Scorpio": flag = collectionItems.getEmptyBottle(); break; case "Cracty": flag = collectionItems.getGlass(); break; case "Cobra": flag = collectionItems.getWood(); break; case "Foxy": flag = collectionItems.getAllTrue(); if (flag) { allItensCollected = true; } break; } return(flag); }