void ExplodeAfterCrack() { #if ENABLE_CRACK_AND_EXPLODE Exploder.ExplodeCracked(OnExplosion); #endif }
/// <summary> /// callback when the object is cracked /// </summary> void OnCracked() { // now the object is cracked we can call ExplodeCracked() now or later ... Exploder.ExplodeCracked(OnExplosion); }
private void ExplodeAfterCrack(GameObject obj) { #if ENABLE_CRACK_AND_EXPLODE Exploder.ExplodeCracked(obj, OnExplosion); #endif }