void Start() { objs = gameObject.GetComponent<RespawnAndDeaths>(); }
// Use this for initialization void Start() { inv = gameObject.GetComponent<playerInventory>(); respawns = GameObject.FindGameObjectWithTag("GameManager").GetComponent<RespawnAndDeaths>(); net = GameObject.FindGameObjectWithTag("GameManager").GetComponent<NetworkManager>(); }
// Use this for initialization void Start() { deathManager = GameObject.FindGameObjectWithTag("GameManager").GetComponent<RespawnAndDeaths>(); }