Beispiel #1
0
 public Event(Trigger trigger)
 {
     Contracts.Assert(() => {return trigger != null;});
     m_trigger = trigger;
     m_trigger.TriggerOn += Start;
     m_trigger.TriggerOff += Stop;
 }
Beispiel #2
0
 public FadeEvent(Camera camera, Colour start, Colour end, float duration, Trigger trigger, ObjectHouse house)
     : base(trigger)
 {
     m_house = house;
     fx_buffer.SetHUD(camera);
     fx_buffer.SetFading(1f/duration, start, end);
 }
Beispiel #3
0
 public ShakeEvent(Camera camera, float shakiness, Trigger trigger, ObjectHouse house)
     : base(trigger)
 {
     m_house = house;
     fx_buffer.SetHUD(camera);
     m_shakiness = shakiness;
 }
Beispiel #4
0
 public TextEvent(Trigger trigger, Text text, ObjectHouse house)
     : base(trigger)
 {
     m_text = text;
     m_house = house;
 }