Class MountableBehaviourCore
Variant of PlayerBehaviourCore for mountables. Extend character to became a montable
Inheritance
Object
Component
Behaviour
MonoBehaviour
MountableBehaviourCore
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
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(PlayerWalkBehaviour))]
public class MountableBehaviourCore : PlayerBehaviourCore, IPlayerBehaviourCore
Fields
|
Edit this page
View Source
mountOffsetFacingDown
Declaration
[Tooltip("Offset of the position of the player mounted on this animal when facing down. Use z axis to change render order")]
public Vector3 mountOffsetFacingDown
Field Value
|
Edit this page
View Source
mountOffsetFacingRight
Declaration
[Header("Mount Offsets")]
[Tooltip("Offset of the position of the player mounted on this animal when facing right or left. Use z axis to change render order")]
public Vector3 mountOffsetFacingRight
Field Value
|
Edit this page
View Source
mountOffsetFacingUp
Declaration
[Tooltip("Offset of the position of the player mounted on this animal when facing up. Use z axis to change render order")]
public Vector3 mountOffsetFacingUp
Field Value
|
Edit this page
View Source
prefab
Declaration
[SerializeField]
[Tooltip("Prefab used to instantiate same mountable again in another level or on savegame load.")]
protected GameObject prefab
Field Value
| Type |
Description |
| GameObject |
|
|
Edit this page
View Source
rideOscillationOffset
Declaration
public float rideOscillationOffset
Field Value
|
Edit this page
View Source
riderMountComponent
Declaration
[Header("Debug")]
[SerializeField]
[Tooltip("Rider mount component")]
protected PlayerMountBehaviour riderMountComponent
Field Value
|
Edit this page
View Source
walkBehaviour
Declaration
[SerializeField]
[Tooltip("Player walk component")]
protected IPlayerWalkBehaviour walkBehaviour
Field Value
Properties
|
Edit this page
View Source
rider
Rider character, that mount the animal
Declaration
public IPlayerBehaviourCore rider { get; }
Property Value
Methods
|
Edit this page
View Source
AddOrConsumePowerUp(EPowerUp)
If it is a consumed powerup, it consumes it, if it is storable, it stores it.
Declaration
public override void AddOrConsumePowerUp(EPowerUp powerUp)
Parameters
Overrides
|
Edit this page
View Source
ConsumePowerup(EPowerUp)
Consume powerup if consumable
Declaration
public override bool ConsumePowerup(EPowerUp powerUp)
Parameters
Returns
| Type |
Description |
| bool |
If consumed, it returns true.
|
Overrides
|
Edit this page
View Source
GetInvertFlip()
Get invert flip for player sync.
Declaration
public bool GetInvertFlip()
Returns
|
Edit this page
View Source
GetMountOffset()
Get the mount offset. This is used to update player position above animal.
Declaration
public Vector3 GetMountOffset()
Returns
| Type |
Description |
| Vector3 |
Offset
|
|
Edit this page
View Source
GetPowerUps()
Get player and mountable powerups
Declaration
public override List<EPowerUp> GetPowerUps()
Returns
Overrides
|
Edit this page
View Source
GetPrefab()
Get prefab used to instantiate this mountable
Declaration
public GameObject GetPrefab()
Returns
| Type |
Description |
| GameObject |
|
|
Edit this page
View Source
GetRiderMountBehaviour()
Get Rider mount behaviour for celebration animation sync.
Declaration
public PlayerMountBehaviour GetRiderMountBehaviour()
Returns
|
Edit this page
View Source
GetSpriteColor()
Used by MountBehaviour to get mountable color for player sync. With this the blink is is propagated to player as well.
Declaration
public Color GetSpriteColor()
Returns
|
Edit this page
View Source
GetSpriteRendererFlip()
Used to get mountable flipping for player sybc
Declaration
public bool GetSpriteRendererFlip()
Returns
|
Edit this page
View Source
GetSpriteSortingOrder()
Used by MountBehaviour to sync player and mountable sorting order
Declaration
public int GetSpriteSortingOrder()
Returns
| Type |
Description |
| int |
sorting order
|
|
Edit this page
View Source
GetWalkDirection()
used to get mountable direction for sync player.
Declaration
public EWalkDirection GetWalkDirection()
Returns
|
Edit this page
View Source
OnEnterInTeleportPortal()
Event that triggers when portais entered
Declaration
public void OnEnterInTeleportPortal()
|
Edit this page
View Source
Set the input. Used when player is mounting
Declaration
public void SetInput(PlayerInputBase input)
Parameters
|
Edit this page
View Source
SetPrefab(GameObject)
Get prefab used to instantiate this mountable. Will be used to be instantiated on next level
Declaration
public void SetPrefab(GameObject prefab)
Parameters
| Type |
Name |
Description |
| GameObject |
prefab |
|
|
Edit this page
View Source
SetRider(IPlayerBehaviourCore)
Set the rider. Used to set rider when is mounting
Declaration
public void SetRider(IPlayerBehaviourCore rider)
Parameters
|
Edit this page
View Source
Update()
Declaration
Implements
Extension Methods