Answer the question
In order to leave comments, you need to log in
Why doesn't a note play when a key is pressed?
I can't play a note when I press a key, what should I do?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;
public class ss : MonoBehaviour
{
[SerializeField] public AudioSource odin;
void Start()
{
}
private void aboba()
{
if (Input.GetKeyDown(KeyCode.R))
{
odin.Play();
}
}
}
Answer the question
In order to leave comments, you need to log in
Because the aboba . Rename to Update and everything should work
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question