public override void Compose(List <State> states) { base.Compose(states); this.Stop.StateMachine = this; Stop.FireTransition = new StateTransition("FireTransition", Stop, Fire); Stop.AddTrigger(FireTransition, Stop.FireTransition); states.Add(Stop); this.Fire.StateMachine = this; Fire.StopTransition = new StateTransition("StopTransition", Fire, Stop); Fire.AddTrigger(StopTransition, Fire.StopTransition); states.Add(Fire); }