C# 클래스 EventDelegate, TheUnseen

파일 보기 프로젝트 열기: henryj41043/TheUnseen 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
oneShot bool

공개 메소드들

메소드 설명
Add ( List list, Callback, callback ) : void

Append a new event delegate to the list.

Add ( List list, Callback, callback, bool oneShot ) : void

Append a new event delegate to the list.

Add ( List list, EventDelegate, ev ) : void

Append a new event delegate to the list.

Add ( List list, EventDelegate, ev, bool oneShot ) : void

Append a new event delegate to the list.

Clear ( ) : void

Clear the event delegate.

Equals ( object obj ) : bool

Equality operator.

EventDelegate ( ) : System.Reflection
EventDelegate ( Callback, call ) : System.Reflection
EventDelegate ( MonoBehaviour target, string methodName ) : System.Reflection
Execute ( ) : bool

Execute the delegate, if possible. This will only be used when the application is playing in order to prevent unintentional state changes.

Execute ( List list ) : void

Execute an entire list of delegates.

GetHashCode ( ) : int

Used in equality operators.

IsValid ( List list ) : bool

Convenience function to check if the specified list of delegates can be executed.

Remove ( List list, Callback, callback ) : bool

Remove an existing event delegate from the list.

Set ( List list, Callback, callback ) : void

Assign a new event delegate.

Set ( MonoBehaviour target, string methodName ) : void

Set the delegate callback using the target and method names.

ToString ( ) : string

Convert the delegate to its string representation.

비공개 메소드들

메소드 설명
Get ( ) : Callback,

Convert the saved target and method name into an actual delegate.

GetMethodName ( Callback, callback ) : string

GetMethodName is not supported on some platforms.

IsValid ( Callback, callback ) : bool
Set ( Callback, call ) : void

Set the delegate callback directly.

메소드 상세

Add() 정적인 공개 메소드

Append a new event delegate to the list.
static public Add ( List list, Callback, callback ) : void
list List
callback Callback,
리턴 void

Add() 정적인 공개 메소드

Append a new event delegate to the list.
static public Add ( List list, Callback, callback, bool oneShot ) : void
list List
callback Callback,
oneShot bool
리턴 void

Add() 정적인 공개 메소드

Append a new event delegate to the list.
static public Add ( List list, EventDelegate, ev ) : void
list List
ev EventDelegate,
리턴 void

Add() 정적인 공개 메소드

Append a new event delegate to the list.
static public Add ( List list, EventDelegate, ev, bool oneShot ) : void
list List
ev EventDelegate,
oneShot bool
리턴 void

Clear() 공개 메소드

Clear the event delegate.
public Clear ( ) : void
리턴 void

Equals() 공개 메소드

Equality operator.
public Equals ( object obj ) : bool
obj object
리턴 bool

EventDelegate() 공개 메소드

public EventDelegate ( ) : System.Reflection
리턴 System.Reflection

EventDelegate() 공개 메소드

public EventDelegate ( Callback, call ) : System.Reflection
call Callback,
리턴 System.Reflection

EventDelegate() 공개 메소드

public EventDelegate ( MonoBehaviour target, string methodName ) : System.Reflection
target MonoBehaviour
methodName string
리턴 System.Reflection

Execute() 공개 메소드

Execute the delegate, if possible. This will only be used when the application is playing in order to prevent unintentional state changes.
public Execute ( ) : bool
리턴 bool

Execute() 정적인 공개 메소드

Execute an entire list of delegates.
static public Execute ( List list ) : void
list List
리턴 void

GetHashCode() 공개 메소드

Used in equality operators.
public GetHashCode ( ) : int
리턴 int

IsValid() 정적인 공개 메소드

Convenience function to check if the specified list of delegates can be executed.
static public IsValid ( List list ) : bool
list List
리턴 bool

Remove() 정적인 공개 메소드

Remove an existing event delegate from the list.
static public Remove ( List list, Callback, callback ) : bool
list List
callback Callback,
리턴 bool

Set() 정적인 공개 메소드

Assign a new event delegate.
static public Set ( List list, Callback, callback ) : void
list List
callback Callback,
리턴 void

Set() 공개 메소드

Set the delegate callback using the target and method names.
public Set ( MonoBehaviour target, string methodName ) : void
target MonoBehaviour
methodName string
리턴 void

ToString() 공개 메소드

Convert the delegate to its string representation.
public ToString ( ) : string
리턴 string

프로퍼티 상세

oneShot 공개적으로 프로퍼티

Whether the event delegate will be removed after execution.
public bool oneShot
리턴 bool