using System.Collections; using System.Collections.Generic; using UnityEngine; /* 游戏事件中心-订阅发布 */ public class GameEventCenter : MonoBehaviour { public System.Action onBowArrowShootOut; public System.Action onTargetAnimalHurt; private static GameEventCenter _ins; public static GameEventCenter ins { get { if (!_ins) { _ins = new GameObject("GameEventCenter").AddComponent(); } return _ins; } } }