// Start is called before the first frame update void Start() { gm = GameObject.Find("GameManager"); controlls = gm.GetComponent <VRMapping>(); character = GameObject.Find("Mech").GetComponent <CharacterController>(); rig = xrRig.GetComponent <XRRig>(); }
// Start is called before the first frame update void Start() { plasmaAmmo = maxPlasmaAmmo; electricEnergy = maxElectricEnergy; gm = GameObject.Find("GameManager"); controlls = gm.GetComponent <VRMapping>(); electricRange = GameObject.Find("ElectricRange"); plasmaRange = GameObject.Find("PlasmaRange"); }