C# Class Supermarket.Selection

Behaviour that handles the selection of gameObjects. Remembers the selected gameObject; follows and applies a visual effect that highlights it.
Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: Clarksj4/Theme-Supermarket-Tycoon-World Class Usage Examples

Méthodes publiques

Méthode Description
Deselect ( ) : void
DisableInput ( ) : void
EnableInput ( ) : void
Pickup ( Collider target ) : void

Private Methods

Méthode Description
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.

Method Details

Deselect() public méthode

public Deselect ( ) : void
Résultat void

DisableInput() public méthode

public DisableInput ( ) : void
Résultat void

EnableInput() public méthode

public EnableInput ( ) : void
Résultat void

Pickup() public méthode

public Pickup ( Collider target ) : void
target UnityEngine.Collider
Résultat void