35 lines
890 B
C#
35 lines
890 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using ZXK.Framework;
|
|
/*******************************************************************************
|
|
*Create By CG
|
|
*Function 事件中心管理_发布者
|
|
*******************************************************************************/
|
|
namespace SenderCtrl
|
|
{
|
|
public class SenderCtrl : MonoBehaviour
|
|
{
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Space))
|
|
{
|
|
MyEventArgs args = new MyEventArgs
|
|
{
|
|
_Name = "发送者"
|
|
};
|
|
EventCenterManager.Instance.Dispatch(EventEnum.Test, this, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|