using System.Collections; using System.Collections.Generic; using UnityEngine; public class DefendEventManager : MonoBehaviour { public Dictionary defendEventDic = new Dictionary(); public void StartEvent(int id) { defendEventDic[id].StartEvent(); } }