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>(); }
protected override void ResolveDependencies() { base.ResolveDependencies(); this.revoluteJoint = jointMap.Joints["joint"] as RevoluteJoint2D; }
/// <summary> /// Constructor /// </summary> /// <param name="name"></param> public MotorBehavior(string name) : base(name) { this.revoluteJoint = null; }
protected override void ResolveDependencies() { base.ResolveDependencies(); this.revoluteJoint = jointMap.Joints["joint"] as RevoluteJoint2D; }
/// <summary> /// Constructor /// </summary> /// <param name="name"></param> public MotorBehavior() : base() { this.revoluteJoint = null; }
/// <summary> /// Constructor /// </summary> /// <param name="name"></param> public MotorBehavior(string name) : base(name) { this.revoluteJoint = null; }
public MotorBehavior() { _revoluteJoint = null; }
/// <summary> /// Constructor /// </summary> /// <param name="name"></param> public MotorBehavior() : base() { this.revoluteJoint = null; }