class FaceSprite #-------------------------------------------------------------------------- # ● 使用する顔画像を返します。 #-------------------------------------------------------------------------- def face_image(actor) # 毒のときに別画像を設定する例 if (actor.state?(2)) return "Actor" + @actor_index.to_s + "_2" end return "Actor" + @actor_index.to_s end end