Set PlayerPrefs another Client

Options
First of all, sorry for my bad english.

I'm trying to learn PUN and develop FPS Game.

For example, Room has 4(Client) player (A,B,C,D)

When a,b,c players killed to d player and if their distance less than 50 to d player

I want to set blood point(PlayerPref) to a,b,c clients.


Can you give me basic example or tips? I think, i cant use "photonView.isMine"
What I need to learn or read documents

Thanks :)

Comments

  • kittyLLLL
    Options
    That's tricky because you can't access someone else's PlayerPrefs directly, since that is saved locally on their computer, but you could access a public variable that changed the value of the Playerprefs. For instance

    public bool myCharacterDied;

    if (myCharacterDied)
    PlayerPrefs.SetInt("Died", 1);

    else
    PlayerPrefs.SetInt("Died", 0);

    Now you just need another character to be able to access the myCharacterDied variable.