Ejemplo n.º 1
0
    public void init()
    {
        role = GetComponent <PlayerControl>();

        movDct = GetComponent <MoveDetect>();
        model  = transform.FindChild("body").FindChild("model");
    }
Ejemplo n.º 2
0
 public void Init()
 {
     role      = GetComponent <PlayerControl>();
     movDct    = GetComponent <MoveDetect>();
     groundDct = GetComponent <GroundDetect>();
     _animator = GetComponent <AnimatorControl>();
     //roleActionsControl = RoleActionsInputBindings.ActionsBindings();
 }
Ejemplo n.º 3
0
    public void init()
    {
        GameManager.Instance.AddRoleListener(this);

        role   = GetComponent <PlayerControl>();
        movDct = GetComponent <MoveDetect>();

        model = transform.Find("body").Find("model");
    }
Ejemplo n.º 4
0
        private void InitializeContext()
        {
            //Create notify icon, with it's context menu:
            components = new Container();
            notifyIcon = new NotifyIcon(components)
            {
                ContextMenuStrip = new ContextMenuStrip(),
                Visible          = true
            };
            UpdateNotifyIcon();
            ToolStripMenuItem item = new ToolStripMenuItem("&Exit");

            item.Click += ExitItem_Click;
            notifyIcon.ContextMenuStrip.Items.Add(item);

            //Create WindowsEvent hook:
            winEventDelegate = new WinAPI.WinEventDelegate(WinEventCallback);
            GCSafetyHandle   = GCHandle.Alloc(winEventDelegate);
            winEventHook     = WinAPI.SetWinEventHook(WinAPI.EVENT_SYSTEM_MOVESIZESTART, WinAPI.EVENT_OBJECT_LOCATIONCHANGE, IntPtr.Zero, winEventDelegate, 0, 0, WinAPI.WINEVENT_OUTOFCONTEXT | WinAPI.WINEVENT_SKIPOWNPROCESS);

            SystemEvents.DisplaySettingsChanged += new EventHandler(SystemEvents_DisplaySettingsChanged);

            moveDetect = new MoveDetect(BeginMovingWindow, EndMovingWindow, ContinueMovingWindow);
        }