Class ExitPortal
Component at the end of the level, responsible for teleporting the player to another level. The object of this component is deactivated by the LevelManager. It is reactivated when all enemies are defeated. If you need to test, simply reactivate this GameObject.
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags
Namespace: BomberDogs.Level
Assembly: Assembly-CSharp.dll
Syntax
public class ExitPortal : MonoBehaviour
Fields
| Edit this page View SourceAnimator
Declaration
public Animator Animator
Field Value
| Type | Description |
|---|---|
| Animator |
OnPlayerEnter
Event defined by the level manager to signal that the player has entered the portal and the teleport can begin.
Declaration
public Action OnPlayerEnter
Field Value
| Type | Description |
|---|---|
| Action |
OpenningPortalSfx
Declaration
public AudioClipSpec OpenningPortalSfx
Field Value
| Type | Description |
|---|---|
| AudioClipSpec |
TeleportingSfx
Declaration
public AudioClipSpec TeleportingSfx
Field Value
| Type | Description |
|---|---|
| AudioClipSpec |
spriteRenderers
Declaration
public SpriteRenderer[] spriteRenderers
Field Value
| Type | Description |
|---|---|
| SpriteRenderer[] |
Methods
| Edit this page View SourceOnTriggerStay2D(Collider2D)
It is called on collision obviously. If the player gets close to the center of the portal, will be dragged into
Declaration
public void OnTriggerStay2D(Collider2D collider)
Parameters
| Type | Name | Description |
|---|---|---|
| Collider2D | collider |
Teleport(Action)
Executes the teleportation process. This is called by the level manager.
Declaration
public void Teleport(Action callback)
Parameters
| Type | Name | Description |
|---|---|---|
| Action | callback |
Exceptions
| Type | Condition |
|---|---|
| Exception |