void OnExplosion(float timeMS, Exploder2DObject.ExplosionState state) { if (state == Exploder2DObject.ExplosionState.ExplosionFinished) { Finish(); } }
void OnExplosion(float time, Exploder2DObject.ExplosionState state) { if (state == Exploder2DObject.ExplosionState.ExplosionFinished) { //Utils.Log("Exploded"); } }
public void OnExplosion(float timeMS, Exploder2DObject.ExplosionState state) { if (state == Exploder2DObject.ExplosionState.ExplosionFinished) { index++; ExplodeList(); } }
/// <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() } }