public SpeedLimitSignpost()
            : base()
        {
            _animationRunning = false;

            AnimationEngine = new TransformationAnimationEngine(this);
            AnimationEngine.SequenceCompletionHandler = HandleAnimationSequenceCompletion;
        }
Exemplo n.º 2
0
        public void Initialize()
        {
            _texture = TextureManager.Textures[TextureName];
            _origin  = new Vector2(_texture.Bounds.Height) / 2.0f;
            _frame   = new Rectangle(0, 0, _texture.Bounds.Width / Rank_Count, _texture.Bounds.Height);

            AnimationEngine = new TransformationAnimationEngine(this);
            AnimationEngine.SequenceCompletionHandler = HandleAnimationSequenceComplete;
        }
Exemplo n.º 3
0
 public RotationGame(IContainer container, IBoard board, IBoardFiller boardFiller, IGameEventDispatcher gameEventDispatcher, IAnimationEngine animationEngine, IGameStateController gameStateController)
 {
     _container = container;
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory = "Content";
     _board = board;
     _boardFiller = boardFiller;
     _animationEngine = animationEngine;
     _gameStateController = gameStateController;
     GameEvents.Dispatcher = gameEventDispatcher;
 }
Exemplo n.º 4
0
 private void Awake()
 {
     m_uiEngine          = IOCCore.Resolve <IUIEngine>();
     m_experienceMachine = IOCCore.Resolve <IExperienceMachine>();
     m_network           = IOCCore.Resolve <INetwork>();
     m_photonView        = GetComponent <PhotonView>();
     m_animationEngine   = IOCCore.Resolve <IAnimationEngine>();
     m_webInterface      = IOCCore.Resolve <IWebInterface>();
     Debug.LogError("Subscribed: m_animationEngine.InteractionStateChange");
     m_animationEngine.InteractionStateChange += PlayerInteractionStateChange;
 }
Exemplo n.º 5
0
        public Speedometer()
            : base()
        {
            _segmentTint     = new Color[] { Color.ForestGreen, Color.Yellow, Color.Orange, Color.Red };
            _segmentIsActive = new bool[_segmentTint.Length];

            RenderLayer = Render_Layer;
            Visible     = true;

            AnimationEngine = new TransformationAnimationEngine(this);
        }
Exemplo n.º 6
0
        public PowerUpButton()
            : base()
        {
            _queuedIconTexture     = "";
            _iconTexture           = null;
            _activeAnimationEngine = null;

            _transformAnimationEngine = new TransformationAnimationEngine(this);
            _transformAnimationEngine.SequenceCompletionHandler = HandleAnimationComplete;

            _colourAnimationEngine = new ColourAnimationEngine(this);
            _colourAnimationEngine.SequenceCompletionHandler = HandleAnimationComplete;

            Visible = false;
        }
Exemplo n.º 7
0
 protected virtual void AwakeOverride()
 {
     m_experienceMachine = ExperienceMachine;
     m_appTheme          = AppTheme;
     m_audio             = Audio;
     m_commonResource    = CommonResource;
     m_settings          = Settings;
     m_fordiNetwork      = FordiNetwork;
     m_webInterface      = WebInterface;
     m_network           = Network;
     m_voiceChat         = VoiceChat;
     //m_annotation = Annotation;
     m_settings        = Settings;
     m_uiEngine        = UIEngine;
     m_assetLoader     = AssetLoader;
     m_pluginHook      = PluginHook;
     m_permissions     = Permissions;
     m_animationEngine = AnimationEngine;
 }
Exemplo n.º 8
0
 public void Deactivate()
 {
     _colourAnimationEngine.Sequence = AnimationDataManager.Sequences[Exit_Sequence_Name];
     _activeAnimationEngine          = _colourAnimationEngine;
 }