PortalInstantiator Class

Summary

Script used with a prefab to ease creation of portals before runtime.
Namespace
ASL.PortalSystem
Base Types
graph TD Base0["LocalEventHandler"]-->Type click Base0 "/2019.CRCS-WebSite/Documentation/api/ASL.LocalEventSystem/LocalEventHandler" Base1["Photon.PunBehaviour"]-->Base0 Type["PortalInstantiator"] class Type type-node

Syntax

public class PortalInstantiator : LocalEventHandler

Fields

Name Constant Value Summary
destinationName
Name of the portal to be linked to when setDestination is true.
playerAvaliable
portalName
Name that can be referenced by other portal instantiators to link when inititilzation. Must be unique
selectorDirection
Direction the selector faces upon creation
selectorPosition
Position of the selector, relative to the portal, upon creation. Not properly syncing on client ends.
setDestination
Boolean indicating whether the portal will automatically linked the the specified portal.

Methods

Name Value Summary
OnDestroy() void
Unsubscribes from the lcal events system to prevent a memory leak.
Inherited from LocalEventHandler
OnEnable() void
OnJoinedRoom() void
Callback function that is triggered when this user connects and joins a Photon room. Useful for making instantiation calls through Photon.
Inherited from LocalEventHandler
OnLocalEvent(object, ASLLocalEventManager.LocalEventArgs) void
OnPhotonInstantiate(PhotonMessageInfo) void
Callback function that is triggered when an object is created via photon.
Inherited from LocalEventHandler