C# 클래스 ElementObserver, PuzzleGameProject

Detects elements encountered by the collider associated to the GameObject which contains this ElementObserver.
상속: MonoBehaviour
파일 보기 프로젝트 열기: Cedric-Paris/PuzzleGameProject 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
isTreated bool

공개 메소드들

메소드 설명
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.

메소드 상세

OnTriggerEnter2D() 공개 메소드

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.
리턴 void

프로퍼티 상세

isTreated 공개적으로 프로퍼티

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