Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

error cs0236 field initializer cannot reference a nonestatic field, method or property

$
0
0
public class UnitGoal : MonoBehaviour { BrainHealth BH = gameObject.GetComponent(); void OnTriggerEnter(Collider c) { Destroy(c.gameObject); } } please help

Viewing all articles
Browse latest Browse all 7934

Trending Articles



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