Beispiel #1
0
    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;
    }
Beispiel #2
0
    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
    }
Beispiel #5
0
 // Start is called before the first frame update
 void Start()
 {
     healthBar.Initialize(enemyName, maxHp);
 }
Beispiel #6
0
 private void Start()
 {
     healthBar.Initialize(enemyName, maxHP);
 }