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

UIManager.gameRulesOne cannot be used as a method or delegate/ is inaccessible due to its protection level

$
0
0
I had this code working a couple of days ago, but then I moved stuff around and visual studio doesn't like it anymore. Both of these scripts are attached to my main camera object. Here is where I'm trying to call my UI manager script. if (checkForEmptyFieldsOne()) { this.gameObject.GetComponent().gameRules1(); } and here is the function I'm trying to call, gameRulesOne. public void gameRulesOne() { if (!gameRules1.gameObject.activeInHierarchy) { gameRules1.gameObject.SetActive(true); StartCoroutine(slideMenu(1f, gameRules1)); } else { gameRules1.gameObject.SetActive(true); StartCoroutine(slideMenu(-1f, gameRules1)); } click.PlayOneShot(click.clip); }

Viewing all articles
Browse latest Browse all 107

Trending Articles



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