CustomManager.cs 685 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using GameFramework.Event;
  5. using UnityEngine;
  6. namespace MetaClient
  7. {
  8. public class CustomManager : MonoBehaviour
  9. {
  10. public static CustomManager Instance;
  11. private void Awake()
  12. {
  13. Instance = this;
  14. }
  15. public void Init()
  16. {
  17. GameEntry.Event.Subscribe(CustomRoleFaceEventArgs.EventId, UpdateFace);
  18. }
  19. public void Clear()
  20. {
  21. GameEntry.Event.Unsubscribe(CustomRoleFaceEventArgs.EventId, UpdateFace);
  22. }
  23. private void UpdateFace(object sender, GameEventArgs e)
  24. {
  25. }
  26. }
  27. }