Can i Launch a Custom Event?

Hello,
I need to know if i can Lauch a custom event from a Script. For example:

Ball Script:

void OnCollisionEnter(Collision collision) 
{
        EventParam.type = "CollisionBall_Ground";
	LaunchEvent(EventParam);
}

GameManagerScript:

void OnEvent(Event evt)
{
       if(evt.type == "CollisionBall_Ground")
           //Do Something
}

AnotherScript:

void OnEvent(Event evt)
{
       if(evt.type == "CollisionBall_Ground")
           //Do Something Else
}

Just as an Observer Patterns… Thanks a Lot! : )

No, you can not generate events.

but you can use an own oberserver pattern, thats what the Event class and Delegates are for after all :slight_smile:

Ok, Thanks. I’ve no problem to use my own Observer Pattern… By the way, Can I try to see c# delegates?