// Start is called before the first frame update void Update() { if (!hasActivated && c.getActivePlayerState()) { msg.Activate(); hasActivated = true; } }
private void OnControllerColliderHit(ControllerColliderHit collision) { if (collision.rigidbody != null) { if (collision.rigidbody.CompareTag("Pickup")) { Destroy(collision.transform.gameObject); hasPickedUp = true; pickedUpModel.SetActive(true); pickedUpMessage.Activate(); } } }