Exemplo n.º 1
0
 void Awake()
 {
     thisTransform = transform;
     thisRigidbody = rigidbody;
     GOsoundEmitt = Instantiate(Resources.Load("Prefabs/04Gameplay/SoundWavesPeeble")) as GameObject;
     soundEmitt = GOsoundEmitt.GetComponent<WaveCreator>();
     soundEmitt.gameObject.name = "_pebbleWave";
     soundEmitt.gameObject.transform.parent = GameObject.Find("Level/Waves/").transform;
     //soundEmitt = Instantiate(instWave) as WaveCreator;
     soundEmitt.createCircle(thisTransform);
     soundEmitt.setParent(thisTransform);
     _CollisionSound = GameObject.Find("Player/SFX_Pebble").GetComponent<FESound>();
     if (_CollisionSound == null)
     {
         Debug.LogError ("Error to find player, plz fix");
     }
 }
Exemplo n.º 2
0
 private void playDestroy(FESound _sound)
 {
     DestroySound.playSound();
 }