Here is the script. I am for some reason getting this error error CS1519: unexpected symbol ‘public’ in class, struct, or interface member declaration.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Buttonoff : MonoBehaviour
{
public static int volume = volumechange.volume
public void OnClick( dfControl control, dfMouseEventArgs mouseEvent )
{
// Add event handler code here
volumechange.volume = 0;
Debug.Log( "Click" );
}
public void OnMouseDown( dfControl control, dfMouseEventArgs mouseEvent )
{
// Add event handler code here
volumechange.volume = 0;
Debug.Log( "MouseDown" );
}
public void OnMultiTouch( dfControl control, dfTouchEventArgs touchData )
{
// Add event handler code here
volumechange.volume = 0;
Debug.Log( "MultiTouch" );
}
}