// Use this for initialization void Start() { line = gameObject.GetComponent <LineRenderer>(); line.enabled = false; renderer = gameObject.GetComponent <Renderer>(); gameObject.GetComponent <Light>().enabled = false; ps = gameObject.GetComponent <ParticleSystem>(); light = gameObject.GetComponent <Light>(); weaponSelectUI = GameObject.FindWithTag("GunController").GetComponent <WeaponSelectUI>(); em = ps.emission; em.enabled = false; }
void Start() { infoPanel.SetActive(false); weaponUI = weaponPanel.GetComponent <WeaponSelectUI>(); }