using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlaySound2 : MonoBehaviour
{
// Start is called before the first frame update
[SerializeField] AudioClip[] clips;
[SerializeField] bool randomizePitch = true;
[SerializeField] float pitchRange = 0.1f;
protected AudioSource source;
private void Awake()
{
// アタッチしたオーディオソースのうち1番目を使用する
source = GetComponents<AudioSource>()[0];
}
void Update()
{
if (randomizePitch)
source.pitch = 1.0f + Random.Range(-pitchRange, pitchRange);
if (Input.GetMouseButtonUp(0))
{
// source.PlayOneShot(clips[0]);
}
if (OVRInput.GetDown(OVRInput.Button.PrimaryThumbstickUp, OVRInput.Controller.LTouch))
{
source.PlayOneShot(clips[0]);
}
if (OVRInput.GetDown(OVRInput.Button.PrimaryThumbstickRight, OVRInput.Controller.LTouch))
{
source.PlayOneShot(clips[1]);
}
if (OVRInput.GetDown(OVRInput.Button.PrimaryThumbstickDown, OVRInput.Controller.LTouch))
{
source.PlayOneShot(clips[2]);
}
if (OVRInput.GetDown(OVRInput.Button.PrimaryThumbstickLeft, OVRInput.Controller.LTouch))
{
source.PlayOneShot(clips[3]);
}
}
A task failed. Check the tasks screen for more info. OculusMmdJunko.armeabi-v7a.apk: : INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1115272604.tmp/base.apk (at Binary XML file line #9): Requires newer sdk version #26 (current version is #25)
むむ、SDKのバージョンが古いのか?