Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to Program in C# - Classes (E07)

At the end of the video, brackeys said to make your own game. I have made a player class and an enemy class and when I want to cast a spell, I want the enemy to lose heath. I am putting the script inside of the CastSpell(); method but I cannot access the enemy's health from another class that isn't main. Can anyone help so I can do this?

Answers

  • WarpWarp Administrator

    You need to show the code that you're working with for us to be able to help

Sign In or Register to comment.