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"); } }
private void playDestroy(FESound _sound) { DestroySound.playSound(); }