Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Semicolons are seen as an unexpected symbol

$
0
0
I'm trying to code a script that makes a light flash when I left-click, because I'm trying to simulate a gun muzzle. using UnityEngine; using System.Collections; public class LightFlash : MonoBehaviour { public class LightIntensityDefault = 2; public class LightFlashIntensity = float; void Update () { if(Input.GetMouseButtonDown("Fire2")) LightFlashIntensity = 4; WaitForEndOfFrame LightFlashIntensity = LightIntensityDefault; light.intensity = LightFlashIntensity; } }

Viewing all articles
Browse latest Browse all 7934

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>