Check out example codes for "unity assets store". It will help you in understanding the concepts better.

Code Example 1

public class PlayAudio : MonoBehaviour
    public AudioSource audioSource;
    public AudioClip clip;
    public float volume=0.5f;

    void Start()
        audioSource.PlayOneShot(clip, volume);

Code Example 2

TypeError: unsupported operand type(s) for -: 'Fraction' and 'Fraction'

Learn ReactJs, React Native from