private void Awake() { bulletDirection = -muzzle.right; shotsLeft = shotsPerClip; PAS = GetComponentInParent <playerAudioScr>(); SHAKE = Camera.main.GetComponent <ShakeCamera>(); }
void Awake() { PAS = GetComponent <playerAudioScr>(); followCam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <FollowCamera>(); rb = GetComponent <Rigidbody2D>(); jumpVec = new Vector2(0, jumpForce); }
void Awake() { PAS = GetComponent <playerAudioScr>(); rb = GetComponent <Rigidbody2D>(); JUMP = GetComponent <Jump>(); }