Exemple #1
0
        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);
 }
Exemple #3
0
        private void ExplodeAfterCrack(GameObject obj)
        {
#if ENABLE_CRACK_AND_EXPLODE
            Exploder.ExplodeCracked(obj, OnExplosion);
#endif
        }