예제 #1
0
 void Update()
 {
     if (input.Initialize || input.PlayerDead)
     {
         while (!Complete)
         {
             Map.MaxMapCount = where;
             GameObject.Find("MiniMap_Cam").transform.parent = null;
             GameObject.FindObjectOfType <MiniMap>().On();
             Map.InitializeMap();
             if (CompleteMap())
             {
                 Complete         = true;
                 input.PlayerDead = false;
             }
         }
         Complete = false;
     }
 }
예제 #2
0
    // Use this for initialization
    void Start()
    {
        Map   = gameObject.GetComponent <MapCreater> ();
        input = GameManager.Instance.InputManager;
        while (!Complete)
        {
            if (!CompleteMap())
            {
                Map.InitializeMap();
                Map.MaxMapCount = where;
            }
            else
            {
                Complete = true;
            }
        }
        Complete = false;

        GameManager.Instance.SoundManager.AudioPlay(GameManager.Instance.SoundManager.BGMS.MAIN_BGM);
    }