PortalSelector.

Initialize(Camera, Portal) Method

Summary

Initialize the PortalSelector with a camera for raycasting button clicks, and a source Portal to follow and control.
Namespace
ASL.PortalSystem
Containing Type
PortalSelector

Syntax

public void Initialize(Camera playerCam, Portal sourcePortal)

Parameters

Name Type Description
playerCam Camera Camera to be used for raycasting when clicking the PortalSelector button.
sourcePortal Portal The Portal component of the portal to be controlled.

Return Value

Type Description
void