private void Awake() { playerInput = GetComponent <PlayerInput>(); playerMovement = GetComponent <PlayerMovement>(); playerShoot = GetComponent <PlayerShoot>(); playerProjectileController = GetComponent <PlayerProjectileController>(); playerImmunity = GetComponent <PlayerImmunity>(); playerLoot = GetComponent <PlayerLoot>(); animator = GetComponent <Animator>(); }
// Use this for initialization void Awake() { projectileController = GetComponentInParent <PlayerProjectileController> (); }