private void Update() { //Debug.Log("My health is " + health); playerList = zombManager.GetPlayerPosList(); if (playerList.Count != 0) { UpdateClosestPlayer(); } MoveTowards(); if (health <= 0) { zombManager.ZombieDied(this); lastPlayer.Money += 100; } }