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().AddComponent(); } return _ins; } } }