// Use this for initialization void Start() { shieldTransform = transform.GetChild(0); ctrlAudio = GameObject.FindGameObjectWithTag("CtrlAudio").GetComponent <CtrlAudio>(); GameObject shieldGameObje = gameObject.transform.GetChild(0).GetChild(0).GetChild(0).GetChild(3).gameObject; idAudioShield = ctrlAudio.playOneSound("Enemies", audioShield, transform.position, 0.2f, 1f, 90, true, shieldGameObje, 50F, 0F, AudioRolloffMode.Linear); }
public void playHiglight() { ctrlAudio.playOneSound("UI", highlightedAudioClip, Vector3.back, 0.6f, 0f, 2); }
protected override void executeAction() { ctrlAudio.playOneSound("UI", audioClip, transform.position, 1.0f, 0f, 128); resourceMachineController.updateSelected(direcction); }