Пример #1
0
    public void GotoNextLevel()
    {
//		if (SettingManager.Instance.TotalTili < 1)
//		{
//			NotEnoughTiliDialog.Popup();
//			return;
//		}
//
//		Time.timeScale = 1.2f;
//
//		if (SettingManager.Instance.TotalTili == 20)
//		{
//			SettingManager.Instance.TiliRecoverTime = System.DateTime.Now.ToString();
////			MainArea.Instance.StartRecoverTili();
//		}
//		GameData.Instance.AddTili(-1);

        GameData.Instance.GotoLevel(GameData.Instance.CurrentLevel + 1);
        DialogManager.Instance.CloseDialog();
        Camera.main.GetComponent <GrayscaleEffect>().enabled = false;
        GameData.Instance.LevelType = LevelType.RushLevel;
        GameData.Instance.Pause     = false;

        GameData.Instance.goldDouble     = false;
        GameData.Instance.bulletCapacity = 1f;
        Ultilities.CleanMemory();

        OtherDialog.Popup(Application.loadedLevelName);
//		Application.LoadLevel(Application.loadedLevelName);
    }
Пример #2
0
    IEnumerator OpneOtherDialog()
    {
        yield return(new WaitForSeconds(0.3f));

        OtherDialog.Popup(sceneName);
    }