Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

How to award character exp for making the killing stroke?

$
0
0
//script1

if(!Alive && !_dead)
{
_dead = true;
_common.AudioController.Play("Death");

if(_playerLastHitMe == 1 && giveExperiencePoints)
{
_playerstat.GiveXp(experiencePoints); //when multiplayer needs another method
}

//script 2
if(other.CompareTag(Tags.Enemy))
{
EnemyStatController...

How to award character exp for making the killing stroke?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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