Quantcast
Channel: Answers for "Access to script global var's from a transform object? (specific ? on something that should work)"
Browsing latest articles
Browse All 4 View Live

Answer by Wotan

What are you trying to achieve?badGuy.Enemy1_AI.EnemyLevel = badEnemyLevel;must fail as badGuy is of the type Transform. Transform however does not have a member .Enemy1_AI.EnemyLevel and therefore the...

View Article


Answer by Adam Rademacher

I think this is what you're looking forbadGuy.gameObject.GetComponent(Enemy1_AI).EnemyLevel = badEnemyLevel;

View Article

Browsing latest articles
Browse All 4 View Live


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