Example #1
0
        private void GameEnd(int gid, int pid)
        {
            GameService.GameEnd(gamesID);
            PuzzlesService.GameEnd(puzzleID, size);

            //устанавливаем готовое изображение
            GameObject.Find("Canvas").transform.Find("Win").Find("Image").gameObject.GetComponent <Image>().material = Resources.Load(C.MATERIALS + "101", typeof(Material)) as Material;

            FrontRouter r = new FrontRouter();

            r.Route("win");
        }
Example #2
0
    private void Update()
    {
        if (inPlay == 1)
        {
            if (Input.GetKeyDown(KeyCode.Escape))
            {
                Debug.Log("press escape");

                r.Route("pause", "index");
            }

            if (Input.GetKeyDown(KeyCode.Space))
            {
                Debug.Log("press space");

                PuzzlesService.Reset();
            }
        }
    }