RegisterEvents.cs 469 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace KairoEngine.CharacterSystem
  5. {
  6. public class RegisterEvents
  7. {
  8. public static event System.Action<CharacterController> OnRegisterCharacter;
  9. public static void RegisterCharacter(CharacterController character)
  10. {
  11. if(OnRegisterCharacter != null)
  12. {
  13. OnRegisterCharacter(character);
  14. }
  15. }
  16. }
  17. }