예제 #1
0
파일: Movement.cs 프로젝트: Ranatza/Unity
 // 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>();
 }
예제 #2
0
파일: Shoot.cs 프로젝트: Ranatza/Unity
 // 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");
 }