void Death() { e_DecrementCounter.DecrementCounter(); // Call 'DecrementCounter' in CanvasScript. Destroy(pathingEntity); // Destroy GameObject tied to variable 'PathingEntity'. // This is just clean-up. Destroy(gameObject); // Destroy itself. }
void Death() { e_DecrementCounter.DecrementCounter(); // Call 'DecrementCounter' in CanvasScript. Destroy(pathingEntity); // Destroy GameObject tied to variable 'PathingEntity'. // This is just clean-up. Destroy(gameObject); // Destroy itself. }