the following script is the one I’m having trouble with.
when i scroll up, i should be able to see the “selectedWeapon” value icrease in the unity editor. But i don’t. Is there something i’m missing? idk, please help
.
by the way, am I the only one whose questions dissappear after a day or so after asking?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Weapons : MonoBehaviour {
public int selectedWeaopon = 0;
// Use this for initialization
void Start ()
{
if (Input.GetAxis("Mouse ScrollWheel") > 0f)
{
selectedWeaopon += 1;
}
}
// Update is called once per frame
void Update () {
}
}