C# Class ViewportControlManagementScript, Viewport

Inheritance: MonoBehaviour
Show file Open project: tws2xa/Viewport

Public Properties

Property Type Description
playerColors Color>.Dictionary
viewportIndicatorYOffset float
viewportTargetIndicatorTemlate Object

Public Methods

Method 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

Method 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 method

Creates the viewport target icon.
public CreateViewportTargetIndicator ( Vector3 iconStartPosition ) : void
iconStartPosition Vector3
return void

DestroyViewportTargetIcon() public method

Removes the viewport target icon.
public DestroyViewportTargetIcon ( ) : void
return void

HasCamera() public method

Checks if the object has the camera.
public HasCamera ( ) : bool
return bool

OnCollisionEnter() public method

public OnCollisionEnter ( Collision collision ) : void
collision Collision
return void

Start() public method

public Start ( ) : void
return void

TakeCamera() public method

Takes control of the viewport.
public TakeCamera ( Vector3 iconPosition ) : void
iconPosition Vector3
return void

Update() public method

public Update ( ) : void
return void

loadSoundManager() public method

public loadSoundManager ( ) : void
return void

Property Details

playerColors public property

public Dictionary playerColors
return Color>.Dictionary

viewportIndicatorYOffset public property

public float viewportIndicatorYOffset
return float

viewportTargetIndicatorTemlate public property

public Object viewportTargetIndicatorTemlate
return Object