GameEventCenter.cs 441 B

123456789101112131415161718
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class GameEventCenter : MonoBehaviour
  5. {
  6. public System.Action<ArmBow, Arrow> onBowArrowShootOut;
  7. private static GameEventCenter _ins;
  8. public static GameEventCenter ins {
  9. get {
  10. if (!_ins) {
  11. _ins = new GameObject().AddComponent<GameEventCenter>();
  12. }
  13. return _ins;
  14. }
  15. }
  16. }