Files
XMen/Assets/Scripts/HUD/Deamon.cs
2025-07-10 14:49:53 +08:00

77 lines
1.6 KiB
C#

//using DragonLi.Core;
//using System.Collections;
//using System.Collections.Generic;
//using UnityEngine;
//public class Deamon : MonoBehaviour
//{
// private int currentIndex = 1;
// private int type = 1;
// //private
// /// <summary>
// /// 是否可以触发
// /// </summary>
// private bool IsCreate = true;
// /// <summary>
// /// 是否结束
// /// </summary>
// ///
// private bool IsStoryEnd = true;
// void Start()
// {
// EventDispatcher.AddEventListener<int>("DeamonStart", DeamonStart);
// }
// public void DeamonStart(int index)
// {
// Debug.Log("GAME START");
// GameManager.Ins.GameOK();
// }
// void Update()
// {
// Debug.Log("EnemyALL:CurrentIndex:" + currentIndex);
// if (GameManager.Ins)
// {
// if (GameManager.Ins.players.Count > 0)
// {
// GameManager.Ins.IsDeamon = true;
// if (IsCreate)
// {
// IsCreate = false;
// StartCoroutine(StoryManager.Ins.CreateStory(currentIndex, type, 20));
// IsStoryEnd = true;
// }
// if (GameManager.Ins.AllEnemyAmount == 0)
// {
// if (IsStoryEnd)
// {
// currentIndex++;
// type++;
// IsCreate = true;
// IsStoryEnd = false;
// }
// }
// //检测当前怪物是否为0
// }
// }
// }
//}