예제 #1
0
 private async Task OnClick(MouseEventArgs args)
 {
     if (Onclick.HasDelegate)
     {
         await Onclick.InvokeAsync(args);
     }
 }
예제 #2
0
        /// <summary>
        /// Close Drawer and update publisher
        /// </summary>
        private async Task UpdatePublisherConfigAsync()
        {
            Publisher.TryUpdateData(InputData);
            await RegistryHelper.UpdatePublisherAsync(Publisher);

            await Onclick.InvokeAsync(null);
        }
        /// <summary>
        /// Close Drawer and update discovery
        /// </summary>
        private async Task UpdateDiscovererConfigAsync()
        {
            DiscovererData.TryUpdateData(InputData);
            await Onclick.InvokeAsync(DiscovererData);

            if (!DiscovererData.isAdHocDiscovery)
            {
                Status = await RegistryHelper.UpdateDiscovererAsync(DiscovererData);
            }
        }
예제 #4
0
        protected async Task OnClick(MouseEventArgs args)
        {
            if (Link != null)
            {
                NavigationManger.NavigateTo(Link.Href);
            }

            if (Onclick.HasDelegate)
            {
                await Onclick.InvokeAsync(args);
            }
        }
예제 #5
0
 public void ClickControl()
 {
     if (clicCount < 2)
     {
         Clicked  = PathFinder;
         Clicked += ClickCounter;
     }
     else
     {
         Clicked   = OnClickTwice;
         clicCount = 0;
     }
     Clicked();
 }
 /// <summary>
 /// Close Drawer and update discovery
 /// </summary>
 /// <param name="discoverer"></param>
 private async Task UpdatePublishedNodeConfigAsync()
 {
     NodeData.TryUpdateData(InputData);
     await Onclick.InvokeAsync(NodeData);
 }
예제 #7
0
    // Update is called once per frame
    void Update()
    {
        if (MyTile == null)
        {
            if (GameController.GM != null)
            {
                MyTile            = GameController.GM.mapTItoGO[GameController.GM.FindTile(coox, cooy, 0)];
                PF                = new Pathfinding(GameController.GM);
                PF.Legal          = IllegalesMoves;
                Clicked           = PathFinder;
                Clicked          += ClickCounter;
                PF.AllowUpAndDown = true;
                PF.TimeOut        = 10000;
            }
        }

        if (Input.GetKeyDown(KeyCode.F1))
        {
            ShowHideOverLayTiles();
        }
        if (Input.GetKeyDown(KeyCode.F2))
        {
            UnitViewMode();
        }
        if (Input.GetKeyDown(KeyCode.F3))
        {
            foreach (TileInfo ti in GameController.GM.mapinfo)
            {
                ti.MyVisual.GetComponentInChildren <TextMesh>().text = ti.R256.ToString() + " , " + ti.G256.ToString() + " , " + ti.G256.ToString();
            }
        }
        if (Input.GetKeyDown(KeyCode.PageUp))
        {
            HeightView++;
            if (HeightView > 2)
            {
                HeightView = 2;
            }



            Terrains[HeightView].SetActive(true);
        }
        if (Input.GetKeyDown(KeyCode.PageDown))
        {
            if (HeightView != 0)
            {
                Terrains[HeightView].SetActive(false);
            }

            HeightView--;
            if (HeightView < 0)
            {
                HeightView = 0;
            }
        }
        if (DoingTurn)
        {
            DoMoves();
        }
    }