Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class _MicToneme : MonoBehaviour
- {
- // - - -
- // Explosion event
- public delegate void ExplodeDelegate( int index, float power );
- public static event ExplodeDelegate explodeEvent;
- // Explosion gets triggered internally from the murky depths of this object-tree; it will call the following function
- // it isn't actually possible to trigger the event from outside the class, arguable whether this way round is conceptually tidier.
- public static void EmitExplosionEvent( int index, float power )
- {
- if( explodeEvent != null )
- explodeEvent( index, power );
- }
Add Comment
Please, Sign In to add comment