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<Rigidbody>().velocity = new Vector3(0, GM.vertVel, 4);
}
void Update () {
}
}
Thank you!