C# Class ElementObserver, PuzzleGameProject

Detects elements encountered by the collider associated to the GameObject which contains this ElementObserver.
Inheritance: MonoBehaviour
ファイルを表示 Open project: Cedric-Paris/PuzzleGameProject Class Usage Examples

Public Properties

Property Type Description
isTreated bool

Public Methods

Method Description
OnTriggerEnter2D ( Collider2D other ) : void

Called when the collider associated encounters another collider. Check if the object encountered is an element, if it is the case, it is put in ElementDetected.

Method Details

OnTriggerEnter2D() public method

Called when the collider associated encounters another collider. Check if the object encountered is an element, if it is the case, it is put in ElementDetected.
public OnTriggerEnter2D ( Collider2D other ) : void
other UnityEngine.Collider2D The collider encountered.
return void

Property Details

isTreated public_oe property

Indicates whether the element detected (ElementDetected) was treated.
public bool isTreated
return bool