public void Initialize(Player player) { id = player.ActorNumber; photonPlayer = player; headerInfo.Initialize(player.NickName, maxHP); if (player.IsLocal) { thisPlayer = this; } else { rig.isKinematic = true; } GameManager.instance.players[id - 1] = this; }
public void Initialize(Player player) { id = player.ActorNumber; photonPlayer = player; GameManager.instance.players[id - 1] = this; // initialize the health bar headerInfo.Initialize(player.NickName, maxHp); if (player.IsLocal) { me = this; } else { rig.isKinematic = true; // turn off physics on other players so we don't process their collisions } }
public void Initialize(Player player) { id = player.ActorNumber; photonPlayer = player; GameManager.instance.players[id - 1] = this; // initialize the health bar headerInfo.Initialize(player.NickName, maxHp); if (player.IsLocal) { me = this; } else { rig.isKinematic = false; } }
public void Initialize(Player player) { id = player.ActorNumber; photonPlayer = player; darkRepulsor.SetActive(false); // initialize the health bar if (player.IsLocal) { me = this; } else { rig.isKinematic = true; } GameManager.instance.players[id - 1] = this; // initialize the health bar headerInfo.Initialize(player.NickName, maxHp); //having issues with this part }
// Start is called before the first frame update void Start() { healthBar.Initialize(enemyName, maxHp); }
private void Start() { healthBar.Initialize(enemyName, maxHP); }