示例#1
0
 public UnityEngine.Coroutine Invoke(Action action, float time)
 {
     return(MonoBehaviourExtensions.Invoke(this, action, time));
 }
 public Coroutine InvokeRepeating(Action action, IGenerator <float> repeatTime)
 {
     return(MonoBehaviourExtensions.InvokeRepeating(this, action, repeatTime));
 }
 /// <summary>
 /// Gets a component of the given type in one of the children, or fail if no such component
 /// is attached to the given component.
 /// </summary>
 /// <typeparam name="T">The type of component to get.</typeparam>
 /// <returns>A component of type T attached to the given component if it exists.
 /// </returns>
 /// <exception cref="InvalidOperationException">When the no component of the
 /// required type exist on any of the given components children.
 /// </exception>
 public T GetRequiredComponentInChildren <T>() where T : Component
 {
     return(MonoBehaviourExtensions.GetRequiredComponentInChildren <T>(this));
 }
 public Coroutine InvokeRepeating(Action action, float time, float repeatTime)
 {
     return(MonoBehaviourExtensions.InvokeRepeating(this, action, time, repeatTime));
 }