void Start() { photonView = GetComponent <PhotonView>(); myWeapon = Hand.GetComponentInChildren <Weapon>(); initDmg = myWeapon.attackDamage; anim = GetComponent <Animator>(); pH = GetComponent <PlayerHealth>(); pM = GetComponent <playerMove>(); initVit = pM.speed; }
void Start() { photonView = GetComponent <PhotonView>(); myWeapon = Hand.GetComponentInChildren <Weapon>(); initDmg = myWeapon.attackDamage; anim = GetComponent <Animator>(); pH = GetComponent <PlayerHealth>(); pM = GetComponent <playerMove>(); _gameManager = new GameManager(); initVit = pM.speed; Timer = 99f; // le timer doit être supérieur au cooldown en début de game sinon les joueurs ne peuvent pas se battre durant les premières secondes damage = myWeapon.attackDamage; }