Ejemplo n.º 1
0
        protected override void ResolveDependencies()
        {
            _scene = Scene as PlayRouletteScene;

            _soundManager = WaveServices.GetService <SimpleSoundService>();

            _needleImage            = _scene.EntityManager.Find("needleImage");
            _needleImageRigidBody2D = _needleImage.FindComponent <RigidBody2D>();

            _movementsTextBlockText = _scene.EntityManager.Find("movementsTextBlock").FindComponent <TextComponent>();
            _noMovementsTextBlock   = _scene.EntityManager.Find("noMovementsTextBlock");

            Entity _needlePin = _scene.EntityManager.Find("needlePin");

            _revoluteJoint = _needlePin.FindComponent <RevoluteJoint2D>();
        }
Ejemplo n.º 2
0
        protected override void ResolveDependencies()
        {
            base.ResolveDependencies();

            this.revoluteJoint = jointMap.Joints["joint"] as RevoluteJoint2D;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name"></param>
 public MotorBehavior(string name)
     : base(name)
 {
     this.revoluteJoint = null;
 }
Ejemplo n.º 4
0
        protected override void ResolveDependencies()
        {
            base.ResolveDependencies();

            this.revoluteJoint = jointMap.Joints["joint"] as RevoluteJoint2D;
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name"></param>
 public MotorBehavior()
     : base()
 {
     this.revoluteJoint = null;
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name"></param>
 public MotorBehavior(string name)
     : base(name)
 {
     this.revoluteJoint = null;
 }
Ejemplo n.º 7
0
 public MotorBehavior()
 {
     _revoluteJoint = null;
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="name"></param>
 public MotorBehavior()
     : base()
 {
     this.revoluteJoint = null;
 }