↧
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 ArticleAnswer by Adam Rademacher
I think this is what you're looking forbadGuy.gameObject.GetComponent(Enemy1_AI).EnemyLevel = badEnemyLevel;
View Article