Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class Detonator : MonoBehaviour
- {
- public Explosion m_ExplosionScript;
- private void Update()
- {
- if (Input.GetButtonDown("Fire1"))
- {
- m_ExplosionScript.Explode();
- CameraShake.Instance.ShakeOnce(1.0f, 30.0f);
- Destroy(gameObject);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement