C# Class ElementObserver, PuzzleGameProject

Detects elements encountered by the collider associated to the GameObject which contains this ElementObserver.
Inheritance: MonoBehaviour
Afficher le fichier Open project: Cedric-Paris/PuzzleGameProject Class Usage Examples

Méthodes publiques

Свойство Type Description
isTreated bool

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

Property Details

isTreated public_oe property

Indicates whether the element detected (ElementDetected) was treated.
public bool isTreated
Résultat bool