委托
来源:互联网 发布:乌鸦森林之谜3mac 编辑:程序博客网 时间:2024/05/29 19:35
using UnityEngine;
using System.Collections;
using System;
public class MyText : MonoBehaviour
{
public static MyText instance;
public delegate void Mytexe01();
public event Mytexe01 Mytxt;
// Use this for initialization
void Awake()
{
instance = this;
}
public void MyEvent ()
{
Mytxt();
}
using System.Collections;
using System;
public class MyText : MonoBehaviour
{
public static MyText instance;
public delegate void Mytexe01();
public event Mytexe01 Mytxt;
// Use this for initialization
void Awake()
{
instance = this;
}
public void MyEvent ()
{
Mytxt();
}
}
using UnityEngine;
using System.Collections;
using System;
public class DeleGate : MonoBehaviour {
void Start()
{
MyText.instance.Mytxt +=Qww;
MyText.instance.MyEvent();
}
public void Qww()
{
Debug.Log(5);
}
}
阅读全文
0 0
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 委托
- 用Excel数据透视表的单字段透视功能统计各销售人员的销售总金额
- spilt走过的坑
- hihocoder 1093 : 最短路径·三:SPFA算法
- 合并两个整数集合,并排序---京东2017秋招笔试
- arcgis10.2导入数据到postgresql9.1
- 委托
- IDEA 及 Gradle 使用总结
- 运行时类型识别(RTTI)与动态类型转换原理(reinterpret_cast const_cast static_cast dynamic_cast)
- 第四周
- 使用webpack 手动创建新react项目
- 系统学习深度学习(三十六)--G-CNN
- HDU 5701中位数计数
- 计算机体系结构--中央处理器
- 解决linux环境mysql的sql语句严格区分大小写问题