// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.O)) { _warper.MyCamera = _exchangeCamera; _exchangeCamera.ChangeShootingMethod(); _warper.Warp(); } if (Input.GetKeyDown(KeyCode.K)) { //スタート時のカメラ演出をスキップする _exchangeCamera.StartProductSkip(); } }
public override void OnGripReleased(ControllerInteractionEventArgs e) { base.OnGripClicked(e); DeathTimes = DeathTimes + 1; GameObject gameObject = GameObject.Find("Player"); ForceWarp = gameObject.GetComponent <ForceWarp>(); ForceWarp.Warp(); gameObject = GameObject.Find("Replay"); Replay = gameObject.GetComponent <Replay>(); Replay.Play(); gameObject = GameObject.Find("DeathMeter"); DeathMeter deathMeter = gameObject.GetComponent <DeathMeter>(); deathMeter.Dead(DeathTimes); }
public async void Load(string path) { Debug.Log("load" + path); var bytes = await new FileRead().ReadAllBytesAsync(path); Destroy(go); var context = new VRMImporterContext(); context.ParseGlb(bytes); var meta = context.ReadMeta(false); Debug.LogFormat("meta: title:{0}", meta.Title); await context.LoadAsyncTask(); go = context.Root; go.transform.SetParent(transform, false); go.transform.position = new Vector3(0, 0, 0); context.ShowMeshes(); SetupVRIK(go); SetupLipSync(go); left.tag = "Player"; right.tag = "Player"; ForceWarp.Warp(); }