예제 #1
0
 void OnExplosion(float timeMS, Exploder2DObject.ExplosionState state)
 {
     if (state == Exploder2DObject.ExplosionState.ExplosionFinished)
     {
         Finish();
     }
 }
예제 #2
0
 void OnExplosion(float time, Exploder2DObject.ExplosionState state)
 {
     if (state == Exploder2DObject.ExplosionState.ExplosionFinished)
     {
         //Utils.Log("Exploded");
     }
 }
예제 #3
0
 public void OnExplosion(float timeMS, Exploder2DObject.ExplosionState state)
 {
     if (state == Exploder2DObject.ExplosionState.ExplosionFinished)
     {
         index++;
         ExplodeList();
     }
 }
예제 #4
0
        /// <summary>
        /// exploder callback
        /// </summary>
        private void OnExplosion(float time, Exploder2DObject.ExplosionState state)
        {
            // explosion is finished
            if (state == Exploder2DObject.ExplosionState.ExplosionFinished)
            {
                //!
                //! HERE IS THE LIST OF ACTIVE FRAGMENTS
                //!

                //            var list = FragmentPool.Instance.GetActiveFragments();

                // NOTE:
                // if you run another explosion afterwards and you dont clear or deactivate fragmets in fragment pool
                // you might get some of the fragments from old explosion as well
                // to deactivate fragments you can call FragmentPool.Instance.DeactivateFragments()
            }
        }