medium10 pts · first answer countsgame-enginesunitycsharp
target?.Attack() on a destroyed enemy
An enemy was Destroyed. Code then calls target?.TakeDamage(5) and gets a MissingReferenceException. Why did ?. not help?
Discussion 0
Join free to post in the discussion.
Related questions
- Frame-rate independent movementGame Developer
- Where to apply physics forcesGame Developer
- Value returned by LerpGame Developer
- Awake or Start firstGame Developer
- What a prefab isGame Developer
- Waiting two seconds in a coroutineGame Developer
- GetComponent every frameGame Developer
- Local vs world positionGame Developer