FloatingMessageEvents.cs 500 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace KairoEngine.Core
  5. {
  6. public class FloatingMessageEvents
  7. {
  8. public static event System.Action<string, Vector3, float, float, float> OnMessage;
  9. public static void Send(string text, Vector3 pos, float offset, float time, float fontSize)
  10. {
  11. if(OnMessage != null)
  12. {
  13. OnMessage(text, pos, offset, time, fontSize);
  14. }
  15. }
  16. }
  17. }