C# 클래스 tk2dButton, Malisse

상속: MonoBehaviour
파일 보기 프로젝트 열기: Collegiennes/Malisse 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
buttonDownSound UnityEngine.AudioClip
buttonDownSprite string
buttonPressedSound UnityEngine.AudioClip
buttonPressedSprite string
buttonUpSound UnityEngine.AudioClip
buttonUpSprite string
messageName string
pressedWaitTime float
scaleTime float
targetObject GameObject
targetScale float
viewCamera Camera

공개 메소드들

메소드 설명
OnEnable ( ) : void
PlaySound ( AudioClip source ) : void
Start ( ) : void
Update ( ) : void
UpdateSpriteIds ( ) : void

Call this when the sprite names have changed

비공개 메소드들

메소드 설명
LocalWaitForSeconds ( float seconds ) : IEnumerator
coHandleButtonPress ( int fingerId ) : IEnumerator
coScale ( Vector3 defaultScale, float startScale, float endScale ) : IEnumerator

메소드 상세

OnEnable() 공개 메소드

public OnEnable ( ) : void
리턴 void

PlaySound() 공개 메소드

public PlaySound ( AudioClip source ) : void
source UnityEngine.AudioClip
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

UpdateSpriteIds() 공개 메소드

Call this when the sprite names have changed
public UpdateSpriteIds ( ) : void
리턴 void

프로퍼티 상세

buttonDownSound 공개적으로 프로퍼티

Audio clip to play when the button transitions from up to down state. Requires an AudioSource component to be attached to work.
public AudioClip,UnityEngine buttonDownSound
리턴 UnityEngine.AudioClip

buttonDownSprite 공개적으로 프로퍼티

The button down sprite. This is resolved by name from the sprite collection of the sprite component.
public string buttonDownSprite
리턴 string

buttonPressedSound 공개적으로 프로퍼티

Audio clip to play when the button is pressed. Requires an AudioSource component to be attached to work.
public AudioClip,UnityEngine buttonPressedSound
리턴 UnityEngine.AudioClip

buttonPressedSprite 공개적으로 프로퍼티

The button pressed sprite. This is resolved by name from the sprite collection of the sprite component.
public string buttonPressedSprite
리턴 string

buttonUpSound 공개적으로 프로퍼티

Audio clip to play when the button transitions from down to up state. Requires an AudioSource component to be attached to work.
public AudioClip,UnityEngine buttonUpSound
리턴 UnityEngine.AudioClip

buttonUpSprite 공개적으로 프로퍼티

The button up sprite. This is resolved by name from the sprite collection of the sprite component.
public string buttonUpSprite
리턴 string

messageName 공개적으로 프로퍼티

The message to send to the object. This should be the name of the method which needs to be called.
public string messageName
리턴 string

pressedWaitTime 공개적으로 프로퍼티

How long to wait before allowing the button to be pressed again, in seconds.
public float pressedWaitTime
리턴 float

scaleTime 공개적으로 프로퍼티

The length of time the scale operation takes
public float scaleTime
리턴 float

targetObject 공개적으로 프로퍼티

Target object to send the message to. The event methods below are significantly more efficient.
public GameObject targetObject
리턴 GameObject

targetScale 공개적으로 프로퍼티

How much to scale the sprite when the button is in the down state
public float targetScale
리턴 float

viewCamera 공개적으로 프로퍼티

The camera this button is meant to be viewed from. Set this explicitly for best performance.\n The system will automatically traverse up the hierarchy to find a camera if this is not set.\n If nothing is found, it will fall back to the active tk2dCamera.\n Failing that, it will use Camera.main.
public Camera viewCamera
리턴 Camera