Esempio n. 1
0
        /// <summary>
        /// update the pin of location in the EndMap
        /// </summary>
        /// <param name="sender">sender of the event</param>
        /// <param name="e">e of the argument</param>
        private void End_Map_Double_click(object sender, MouseButtonEventArgs e)
        {
            e.Handled = true;
            Point    p = e.GetPosition(EndMap);
            Location l = EndMap.ViewportPointToLocation(p);

            EndPin.Location = l;

            UpdateEndComboBox();
        }
Esempio n. 2
0
    public void CreateMap(int count)
    {
        _holder = GameObject.FindGameObjectWithTag("MapHolder").GetComponent <Transform>();

        StartCoroutine(IECreateMap(count));

        EndMap endMap = new EndMap(new GameObject("EndMap"), "EndMap");

        endMap._holder.gameObject.SetActive(false);
        endMap.PrevMap = _maps[_maps.Count - 1];
        _maps[_maps.Count - 1].NextMap = endMap;

        _maps.Add(_maps.Count, endMap);
    }
Esempio n. 3
0
    public void DownTranslate(Map map)
    {
        Debug.Log("DownStart");
        MapReplace(map);
        GameMng.CharMng.GetHero().SetPosition(map._start);

        if (map._holder.name == "EndMap")
        {
            EndMap endMap = map as EndMap;
            endMap.EndingItemCreate();
        }
        else      // Monster Spawn
        {
            GameMng.Spawn.SetMap(map);
            GameMng.Spawn.MonsterSpawn();
        }

        // GameStart
        GameMng.Sound.SfxPlay("InToDungeon");
        TurnMng.Instance.HeroTurn();
    }