Пример #1
0
 public KeyBoardEventArgs(KeyCode key, bool keyDown, bool keyUp)
 {
     Key             = key;
     KeyDown         = keyDown;
     KeyUp           = keyUp;
     uiManager       = ManagerResolver.Resolve <IUIManager>();
     selectedManager = ManagerResolver.Resolve <ISelectedManager>();
 }
 public KeyBoardEventArgs(KeyCode key, bool keyDown, bool keyUp)
 {
     Key = key;
     KeyDown = keyDown;
     KeyUp = keyUp;
     uiManager = ManagerResolver.Resolve<IUIManager>();
     selectedManager = ManagerResolver.Resolve<ISelectedManager>();
 }
Пример #3
0
    protected void Start()
    {
        guiManager      = ManagerResolver.Resolve <IGUIManager>();
        selectedManager = ManagerResolver.Resolve <ISelectedManager>();

        m_IsDeployable   = this is IDeployable;
        m_IsAttackable   = this is IAttackable;
        m_IsInteractable = this is IInteractable;
    }
Пример #4
0
    // Use this for initialization
    void Start()
    {
        m_DragStyle.normal.background = TextureGenerator.MakeTexture(0.8f, 0.8f, 0.8f, 0.3f);
        m_DragStyle.border.bottom     = 1;
        m_DragStyle.border.top        = 1;
        m_DragStyle.border.left       = 1;
        m_DragStyle.border.right      = 1;

        m_GuiManager      = ManagerResolver.Resolve <IGUIManager>();
        m_SelectedManager = ManagerResolver.Resolve <ISelectedManager>();

        ManagerResolver.Resolve <IEventsManager>().MouseClick += LeftButtonPressed;
    }
Пример #5
0
    // Use this for initialization
    void Start()
    {
        //Resolve interface variables
        m_SelectedManager   = ManagerResolver.Resolve <ISelectedManager>();
        m_Camera            = ManagerResolver.Resolve <ICamera>();
        m_GuiManager        = ManagerResolver.Resolve <IGUIManager>();
        m_MiniMapController = ManagerResolver.Resolve <IMiniMapController>();

        //Attach Event Handlers
        IEventsManager eventsManager = ManagerResolver.Resolve <IEventsManager>();

        eventsManager.MouseClick              += ButtonClickedHandler;
        eventsManager.MouseScrollWheel        += ScrollWheelHandler;
        eventsManager.KeyAction               += KeyBoardPressedHandler;
        eventsManager.ScreenEdgeMousePosition += MouseAtScreenEdgeHandler;

        //Attach gui width changed event
        GUIEvents.MenuWidthChanged += MenuWidthChanged;

        //Loader.main.FinishedLoading (this);
    }
Пример #6
0
    protected void Start()
    {
        guiManager = ManagerResolver.Resolve<IGUIManager>();
        selectedManager = ManagerResolver.Resolve<ISelectedManager>();

        m_IsDeployable = this is IDeployable;
        m_IsAttackable = this is IAttackable;
        m_IsInteractable = this is IInteractable;
    }
    // Use this for initialization
    void Start()
    {
        Debug.Log(primaryPlayer.controlledLayer + " swag");
        //Resolve interface variables
        m_SelectedManager = ManagerResolver.Resolve<ISelectedManager>();
        m_Camera = ManagerResolver.Resolve<ICamera>();
        m_GuiManager = ManagerResolver.Resolve<IGUIManager>();
        m_MiniMapController = ManagerResolver.Resolve<IMiniMapController>();

        //Attach Event Handlers
        IEventsManager eventsManager = ManagerResolver.Resolve<IEventsManager>();
        eventsManager.MouseClick += ButtonClickedHandler;
        eventsManager.MouseScrollWheel += ScrollWheelHandler;
        eventsManager.KeyAction += KeyBoardPressedHandler;
        eventsManager.ScreenEdgeMousePosition += MouseAtScreenEdgeHandler;

        //Attach gui width changed event
        GUIEvents.MenuWidthChanged += MenuWidthChanged;

        //Resolve player tag / layer variables
        SetPlayerIdentifiers();

        //Loader.main.FinishedLoading (this);
    }
 public KeyBoardEventArgs(KeyCode key)
 {
     Key = key;
     uiManager = ManagerResolver.Resolve<IUIManager>();
     selectedManager = ManagerResolver.Resolve<ISelectedManager>();
 }
    // Use this for initialization
    void Start()
    {
        m_DragStyle.normal.background = TextureGenerator.MakeTexture (0.8f, 0.8f, 0.8f, 0.3f);
        m_DragStyle.border.bottom = 1;
        m_DragStyle.border.top = 1;
        m_DragStyle.border.left = 1;
        m_DragStyle.border.right = 1;

        m_GuiManager = ManagerResolver.Resolve<IGUIManager>();
        m_SelectedManager = ManagerResolver.Resolve<ISelectedManager>();

        ManagerResolver.Resolve<IEventsManager>().MouseClick += LeftButtonPressed;
    }
Пример #10
0
 public KeyBoardEventArgs(KeyCode key)
 {
     Key             = key;
     uiManager       = ManagerResolver.Resolve <IUIManager>();
     selectedManager = ManagerResolver.Resolve <ISelectedManager>();
 }