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