private void Awake() { _playerHandling = GetComponent <PlayerHandling>(); _playerCheckpointResetter = GetComponent <PlayerCheckpointResetter>(); _ragdollController = GetComponent <RagdollController>(); _playerEffects = GetComponentInChildren <PlayerEffects>(); _health = _initialHealth; }
//private PlayerEffects _playerEffects; //private Dictionary<ICollidable, float> _collisionHistory = new Dictionary<ICollidable, float>(); private void Awake() { _playerHealth = GetComponentInParent <PlayerHealth>(); _playerCheckpointResetter = GetComponentInParent <PlayerCheckpointResetter>(); //_playerEffects = transform.parent.GetComponentInChildren<PlayerEffects>(); }