Wwise Authoring is currently not compatible with macOS Catalina. We recommend that you remain on the current version of your operating system until further notice.

レッスン 8


Creating Diversity Using Game Parameters: SetRTPCToDistance

(go to Creating Diversity Using Game Parameters)

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SetRTPCToDistance : MonoBehaviour {
    public AK.Wwise.RTPC GameParameter;
    public Transform OtherTransform;

    // Update is called once per frame.
    void Update () {
      float distance = Vector3.Distance(OtherTransform.position, transform.position);