C# Class ViewportControlManagementScript, Viewport

Inheritance: MonoBehaviour
Afficher le fichier Open project: tws2xa/Viewport

Méthodes publiques

Свойство Type Description
playerColors Color>.Dictionary
viewportIndicatorYOffset float
viewportTargetIndicatorTemlate Object

Méthodes publiques

Méthode Description
CreateViewportTargetIndicator ( Vector3 iconStartPosition ) : void

Creates the viewport target icon.

DestroyViewportTargetIcon ( ) : void

Removes the viewport target icon.

HasCamera ( ) : bool

Checks if the object has the camera.

OnCollisionEnter ( Collision collision ) : void
Start ( ) : void
TakeCamera ( Vector3 iconPosition ) : void

Takes control of the viewport.

Update ( ) : void
loadSoundManager ( ) : void

Private Methods

Méthode Description
CameraIsTargeting ( GameObject obj ) : bool

Checks whether or not the camera is targeting the given object

IsShielded ( ) : bool

Checks if this object is somehow shielded from losing the camera.

ObjectCanGrabCamera ( GameObject obj ) : bool

Checks if the given object should grab the camera

Method Details

CreateViewportTargetIndicator() public méthode

Creates the viewport target icon.
public CreateViewportTargetIndicator ( Vector3 iconStartPosition ) : void
iconStartPosition Vector3
Résultat void

DestroyViewportTargetIcon() public méthode

Removes the viewport target icon.
public DestroyViewportTargetIcon ( ) : void
Résultat void

HasCamera() public méthode

Checks if the object has the camera.
public HasCamera ( ) : bool
Résultat bool

OnCollisionEnter() public méthode

public OnCollisionEnter ( Collision collision ) : void
collision Collision
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

TakeCamera() public méthode

Takes control of the viewport.
public TakeCamera ( Vector3 iconPosition ) : void
iconPosition Vector3
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

loadSoundManager() public méthode

public loadSoundManager ( ) : void
Résultat void

Property Details

playerColors public_oe property

public Dictionary playerColors
Résultat Color>.Dictionary

viewportIndicatorYOffset public_oe property

public float viewportIndicatorYOffset
Résultat float

viewportTargetIndicatorTemlate public_oe property

public Object viewportTargetIndicatorTemlate
Résultat Object