private void OnTriggerEnter(Collider other) { status playerStatus = other.GetComponent <status>(); if (playerStatus != null) { playerStatus.addShield(); Destroy(this.gameObject); } }
private void OnTriggerEnter(Collider other) { status playerStatus = other.GetComponent <status>(); if (playerStatus != null) { playerStatus.addShield(); Destroy(this.gameObject); } }