def param_update
@hp.set_rect(hp_rate,@hp.height)
if player.hp.to_f / player.mhp = <0.5>0.25
def normal_tone
Tone.new(255,0,0,255)
end
else
if player.hp.to_f / player.mhp = <0.26>0.0
def normal_tone
Tone.new(255,-255,0,255)
end
else
def normal_tone
Tone.new(0,0,0,255)
end
@mp.set_rect(mp_rate,@mp.height)
@exp.set_rect(exp_rate,@exp.height)
[@hp,@mp,@exp].each {|i| i.update }
end
이렇게 작성을 했는데 부등호를 인식을 못하는것 같은데 어떻게 해야 플레이어의 hp가 0.26보다 작을때를 나타낼수 있을까요?