Quantcast
Channel: Questions in topic: "protection"
Viewing all articles
Browse latest Browse all 107

Getting the error "is inaccessible due to it's protection level" when I have the function set to public.

$
0
0
So I'm working with Wwise and I've followed what's in the Wwise documentation to make the following script: using UnityEngine; using System; using System.Collections; public class ScratchPad : MonoBehaviour { void Update() { if (Input.GetButtonDown("Fire12")) GetComponent().Keypress(); } } That script is meant to work with: #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. ////////////////////////////////////////////////////////////////////// // // Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved // ////////////////////////////////////////////////////////////////////// using UnityEngine; using System; using System.Collections; public class AkTriggerOnKeyPress : AkTriggerBase { void Keypress() { if(triggerDelegate != null) { triggerDelegate(null); } } } Any help on this would be appreciated, I am completely stumped as to why my script (top) is having this issue.

Viewing all articles
Browse latest Browse all 107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>