private void Start() { player = GetComponent <Player>(); abiliti = abilities[PlayerPrefs.GetInt("P2")]; player.moveSpeed = abiliti.speed; player.timeToJumpApex = abiliti.jump; player.maxJumpHeight = abiliti.jumpHeight; }
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(); }