赞
踩
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour {
private GameObject target;
void Start() {
target = GameObject.FindWithTag("Player");
}
}
- interface IEvent<T> where T : EventArgs
- {
- void Raise(object sender, T args);
- }
- interface IReviveEvent : IEvent<EventArg>
- {
- }
- class Mob : MonoBehaviour, IReviveEvent
- {
- void IReviveEvent.Raise(object sender, EventArgs e)
- {
- //...
- }
- }
inline void MonoBehaviour::Start ()
{
....
method = m_Methods[MonoScriptCache::kCoroutineStart];
if (method)
InvokeMethodOrCoroutineChecked (method, SCRIPTING_NULL);
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。