private void Awake() { guideAudioS2 = GetComponent <AudioSource>(); mm4Script = GetComponent <MagicMoveV4>(); capsIngestScript = leftController.GetComponent <CapsulatedIngestionV2>(); pcolScript = particleWeapon.GetComponent <ParticleCollision>(); teleportScriptR = GetComponent <Teleportation>(); teleportScriptL = leftController.GetComponent <Teleportation>(); animEndGameNote = endGameNote.GetComponent <Animator>(); }
// Use this for initialization void Awake() { particle = GetComponent <ParticleLauncher>(); ingest = GetComponent <CapsulatedIngestionV2>(); nets = GetComponent <NETSv1>(); particle.enabled = false; ingest.enabled = false; nets.enabled = false; rendP = particleButton.gameObject.GetComponent <Renderer>(); rendI = ingestButton.gameObject.GetComponent <Renderer>(); rendN = netsButton.gameObject.GetComponent <Renderer>(); //weaponText = displayUI.GetComponent<TextMeshPro> (); aimingReticle.SetActive(false); animTeleButton = teleButtonAssembly.GetComponent <Animator>(); AM2Script = rightController.GetComponent <AudioManagerS2>(); errorAudio = GetComponent <AudioSource>(); }