Esempio n. 1
0
    void BronColdTime()
    {
        int        id      = Team;
        int        type    = soliderType;
        GameObject Bplayer = PhotonNetwork.Instantiate(Player [type].name, bronpoint [type].transform.position, bronpoint [type].transform.rotation, 0) as GameObject;

        cam.SetCurrentTragert(Bplayer);
        DeadPanel.SetActive(false);
        IsBroning = false;
        UiManager.Instance.IsBron = true;
        GetComponent <AudioListener>().enabled = false;
    }
Esempio n. 2
0
    void GetDamage(int _damage, int ViewId)
    {
        Health -= _damage;

        if (Health <= 0)
        {
            if (pv.isMine)
            {
                PhotonView.Find(ViewId).RPC("GetKill", PhotonTargets.All, null);
                PhotonNetwork.player.AddScore(1);
                CF.SetCurrentTragert(CF.InitGameObject);
            }

            gameObject.tag = "Untagged";
            die();
        }
    }