private void OnTriggerEnter(Collider other) { if (other.gameObject.CompareTag("Player") && other.GetComponentInChildren <vThrowManager>() != null) { throwManager = other.GetComponentInChildren <vThrowManager>(); } }
private void OnTriggerEnter(Collider other) { if (other.gameObject.tag.Equals("Player") && other.GetComponent <vThrowManager>() != null) { throwManager = other.GetComponent <vThrowManager>(); } }
internal virtual void UpdateCount(vThrowManager throwManager) { currentThrowCount.text = throwManager.currentThrowObject.ToString(); maxThrowCount.text = throwManager.maxThrowObjects.ToString(); }