how autosave for reduce blood

hey… i hv a question about autosave on function OnGUI, i want to make a countdown pet status…

then… when i quit the game, i can continue it.

example : i start the game when my blood status is 100%, and that blood status will be

reduced until 40%, then i quit the game.

i want it to be 40% when i resume the game

can anybody help me … thank you very much

Why does your weapon have a rigidbody? I dont understand. I thought the force was being applied to your bullets that are being instantiated

1 Answer

1

Quick answer

Long answer

To ‘auto’ the save, just call Playerprefs.SetInt before you call Application.Quit on your Quit-button.

For auto-load, call Playerprefs.GetInt in function Start() of your player-health-script.

Greetz, Ky.

Huh? That's strange... you should be able to do it. You are logged in, so it should not be a problem =/ Maybe a bug with UnityAnswers...?