using System.Collections; using System.Collections.Generic; using UnityEngine; public class MuzzleFlash : MonoBehaviour { // Use this for initialization void Start () { } // Update is called once per frame void Update () { this.gameObject.transform.localScale = Vector3.one * Random.Range(0.5f, 1.5f); this.gameObject.transform.Rotate(0,0, Random.Range(0, 10.0f),Space.Self); } }