C# 클래스 Supermarket.Selection

Behaviour that handles the selection of gameObjects. Remembers the selected gameObject; follows and applies a visual effect that highlights it.
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: Clarksj4/Theme-Supermarket-Tycoon-World 1 사용 예제들

공개 메소드들

메소드 설명
Deselect ( ) : void
DisableInput ( ) : void
EnableInput ( ) : void
Pickup ( Collider target ) : void

비공개 메소드들

메소드 설명
Awake ( ) : void

Awake retrieves visualEffects child object reference and disables it.

Select ( Collider target ) : void

Selects the given gameObject. A selected gameObject is followed and highlighted by a visual effect, and has its statistics displayed on the UI.

Update ( ) : void

Update checks for mouse clicks to in order to select and deselect gameObjects. Only does so when the mouse is not over a UI element.

메소드 상세

Deselect() 공개 메소드

public Deselect ( ) : void
리턴 void

DisableInput() 공개 메소드

public DisableInput ( ) : void
리턴 void

EnableInput() 공개 메소드

public EnableInput ( ) : void
리턴 void

Pickup() 공개 메소드

public Pickup ( Collider target ) : void
target UnityEngine.Collider
리턴 void