Case Status
Log In


Home ยป Samples»M2H Catch Egg»M2H Catch Eggs Game, ground co…
Community Wiki

M2H Catch Eggs Game, ground collider Fsm

Detects when eggs are falling on the ground and destroy them.

Simple Fsm to the point. We detect when an egg touches the floor and delete it. In this game since it's very simple, only eggs are falling, so we know that anything that touches the ground is an egg, that's why we can afford to use the "TRIGGER ENTER" build in event, else we would need to use the TriggerEvent actions and filter by gameObject tags, which works very well if different objects falls on the ground.

Example, you could have a golden egg, that if you catch it makes you win a bonus, and if you don't, makes you loose a a lot of points, for this we would tag the golden egg and have to implement this fsm differently and use the TriggerEvent action.



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

  • RSS Feed