示例#1
0
    // 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);
    }
示例#2
0
 public void playHiglight()
 {
     ctrlAudio.playOneSound("UI", highlightedAudioClip, Vector3.back, 0.6f, 0f, 2);
 }
示例#3
0
 protected override void executeAction()
 {
     ctrlAudio.playOneSound("UI", audioClip, transform.position, 1.0f, 0f, 128);
     resourceMachineController.updateSelected(direcction);
 }