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

The name 'GM' does not exist in the current context

$
0
0
GM.cs Script: using System.Collections; using UnityEngine; public class GM : MonoBehaviour { public static float vertVel = 0; void Start () { } void Update () { } } MoveCam.cs Script[error on GM.vertVel]: using UnityEngine; public class MoveCam : MonoBehaviour { void Start () { //Move Main Camera On Y Axis X Z Y GetComponent().velocity = new Vector3(0, GM.vertVel, 4); } void Update () { } } Thank you! :)

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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