You've already forked zumbi-game
Compare commits
2 Commits
5525c0d328
...
6a14b5be4f
| Author | SHA1 | Date | |
|---|---|---|---|
|
6a14b5be4f
|
|||
|
761753a8fe
|
@@ -1,6 +1,7 @@
|
||||
using UnityEngine;
|
||||
|
||||
[RequireComponent(typeof(Animator))]
|
||||
|
||||
[RequireComponent(typeof(Rigidbody))]
|
||||
public class ZombieController : MonoBehaviour
|
||||
{
|
||||
private static readonly int DieHash = Animator.StringToHash("Die");
|
||||
@@ -41,6 +42,7 @@ public class ZombieController : MonoBehaviour
|
||||
private void Update()
|
||||
{
|
||||
if (player == null) return;
|
||||
if (currentHealth == 0) return;
|
||||
|
||||
float distance = Vector3.Distance(transform.position, player.position);
|
||||
|
||||
|
||||
@@ -12,3 +12,5 @@ Unity version: `6000.3.13f1` (LTS)
|
||||
- [ ] Inteligentnejší spawner
|
||||
- randomizácia delayu medzi spawnmi
|
||||
- [ ] Obmedzenie priestoru aby sa nedalo dostať von z mapy (neni nutné)
|
||||
- [ ] Opraviť opakujúciú "Die" animáciu keď sa spamuje strielanie zombíka
|
||||
- [ ] Opraviť posun zombíka na podlahe keď umiera
|
||||
Reference in New Issue
Block a user