Esempio n. 1
0
    private void Start()
    {
        player = GetComponent <Player>();

        abiliti = abilities[PlayerPrefs.GetInt("P2")];

        player.moveSpeed      = abiliti.speed;
        player.timeToJumpApex = abiliti.jump;
        player.maxJumpHeight  = abiliti.jumpHeight;
    }
Esempio n. 2
0
    private void Awake()
    {
        player = GetComponent <Player>();
        rb     = GetComponent <Rigidbody2D>();

        if (playerNb == Joueur.un)
        {
            abiliti = abilities[PlayerPrefs.GetInt("P1")];
        }
        else if (playerNb == Joueur.deux)
        {
            abiliti = abilities[PlayerPrefs.GetInt("P2")];
        }

        player.moveSpeed      = abiliti.speed;
        player.timeToJumpApex = abiliti.jump;
        player.maxJumpHeight  = abiliti.jumpHeight;
    }
 private void refreshElRevard()
 {
     Qwest?.RefreshRev();
     Abiliti?.RefreshRev();
     Characteristic?.RefreshRev();
 }