PlayerShooting playershooting; // For Player Shooting reference; private void Awake() { dualJoystickPlayerController = GetComponent <DualJoystickPlayerController>(); playershooting = GetComponentInChildren <PlayerShooting>(); currentHealth = StartingHealth; audioSource = GetComponent <AudioSource>(); }
private void Awake() { gunline = GetComponent <LineRenderer>(); gunLight = GetComponent <Light>(); dualJoystickPlayerController = GetComponentInParent <DualJoystickPlayerController>(); gunParticles = GetComponentInChildren <ParticleSystem>(); audiosource = GetComponent <AudioSource>(); audiosource.clip = audioClip; }