C# Class SignalOnTouch, MobileGameDevWithUnity1stEd

Inheritance: MonoBehaviour
ファイルを表示 Open project: thesecretlab/MobileGameDevWithUnity1stEd

Public Properties

Property Type Description
onTouch UnityEngine.Events.UnityEvent
playAudioOnTouch bool

Public Methods

Method Description
OnCollisionEnter2D ( Collision2D collision ) : void
OnTriggerEnter2D ( Collider2D collider ) : void
SendSignal ( GameObject objectThatHit ) : void

Method Details

OnCollisionEnter2D() public method

public OnCollisionEnter2D ( Collision2D collision ) : void
collision Collision2D
return void

OnTriggerEnter2D() public method

public OnTriggerEnter2D ( Collider2D collider ) : void
collider UnityEngine.Collider2D
return void

SendSignal() public method

public SendSignal ( GameObject objectThatHit ) : void
objectThatHit GameObject
return void

Property Details

onTouch public_oe property

public UnityEvent,UnityEngine.Events onTouch
return UnityEngine.Events.UnityEvent

playAudioOnTouch public_oe property

public bool playAudioOnTouch
return bool