Example #1
0
 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.
 }