//TODO: explode void Explode() { Debug.Log("Boom!"); GameObject.Instantiate(explosionPrefab, transform.position, Quaternion.Euler(-90.0f, 0.0f, 0.0f)); owner.GrenadeExploded(); GameObject.Destroy(gameObject); }
//TODO: explode void Explode() { Debug.Log("Boom!"); GameObject.Instantiate(explosionPrefab, transform.position, Quaternion.Euler(-90.0f, 0.0f, 0.0f)); owner.GrenadeExploded(); HLG_GameManager.instance.GrenadeExploded(); GameObject.Destroy(gameObject); AudioSource.PlayClipAtPoint(HLG_SoundManager.instance.explosionMedium, transform.position); }