//材料を取るときのイベント public void onTakingIngredient() { status.Ingredients++; if (takeIngredient != null) { takeIngredient(); } else { if (canvas != null) { canvas.activeIngredientImage(false); } } }