Quantcast
Channel: Answers for "Public boolean can't be accessed due to its protection level."
Viewing all articles
Browse latest Browse all 4

Answer by YoungDeveloper

$
0
0
You are accessing isDead like a static variable. Use Getcomponent from gameobject which holds that playerscript instance or set is isDead static, which i don't suggest as its player, and is not statically living for the whole software life time. I explain it pretty clearly in these two topics: http://answers.unity3d.com/questions/550578/cant-understand-getcomponent-c.html http://answers.unity3d.com/questions/597617/how-do-i-addsubtract-variables-between-two-differe.html

Viewing all articles
Browse latest Browse all 4

Trending Articles



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