Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

Override a component method

$
0
0
I have a Health class which has methods TakeDamage() and Die(). My Enemy class has a Health component, so when my Enemy is taking damage Health.TakeDamage() is being executed. How do i go and override Die() method to work differently on different types on enemies.

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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