Case Status
Log In


Home ยป Samples»M2H Catch Egg»M2H Catch Eggs Game, egg colli…
Community Wiki

M2H Catch Eggs Game, egg collider Fsm

Detects when eggs are falling in the bucket, and fire a global events for the game to know about it ( for example to increase the score).

This Fsm detects when an egg falls in the bucket ( this is the bottom trigger), It sends a global Event "EGG CAUGHT" that will be treated by the gui fsmgui

It also delete the egg as well. this is where it differs a bit from the scripted version, where a leak happens because the egg is deleted but not its parent, so EggPrefab gameObjects never get deleted and leak. Here we properly manage eggs and they never leak.

Notice that the Start state is empty, we don't do anything but wait for a trigger enter Event.


Last modified on 5/11/2012 2:39 AM by User.

  • RSS Feed