Class PlayerWalkBehaviour
Implements
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.PlayerBehaviours
Assembly: Assembly-CSharp.dll
Syntax
public class PlayerWalkBehaviour : PlayerBehaviourBase, IPlayerWalkBehaviour
Fields
| Edit this page View SourcefacingRight
Declaration
[Header("Debug")]
[SerializeField]
protected bool facingRight
Field Value
| Type | Description |
|---|---|
| bool |
idleToDownState
Declaration
[AnimatorStatesDropdown(0)]
public string idleToDownState
Field Value
| Type | Description |
|---|---|
| string |
idleToRightState
Declaration
[AnimatorStatesDropdown(0)]
public string idleToRightState
Field Value
| Type | Description |
|---|---|
| string |
idleToUpState
Declaration
[AnimatorStatesDropdown(0)]
public string idleToUpState
Field Value
| Type | Description |
|---|---|
| string |
impassableLayerMask
Declaration
protected LayerMask impassableLayerMask
Field Value
| Type | Description |
|---|---|
| LayerMask |
increaseSpeedWithPowerUp
Declaration
public float increaseSpeedWithPowerUp
Field Value
| Type | Description |
|---|---|
| float |
invertFlip
Declaration
public bool invertFlip
Field Value
| Type | Description |
|---|---|
| bool |
lastPosition
Declaration
[SerializeField]
protected Vector3 lastPosition
Field Value
| Type | Description |
|---|---|
| Vector3 |
maxSpeed
Declaration
[Header("General Tweaks")]
public float maxSpeed
Field Value
| Type | Description |
|---|---|
| float |
minSpeed
Declaration
public float minSpeed
Field Value
| Type | Description |
|---|---|
| float |
toleranceToAvoidStuckness
Declaration
[Range(0, 1)]
public float toleranceToAvoidStuckness
Field Value
| Type | Description |
|---|---|
| float |
walkDirection
Declaration
[SerializeField]
protected EWalkDirection walkDirection
Field Value
| Type | Description |
|---|---|
| EWalkDirection |
walkingToDownState
Declaration
[AnimatorStatesDropdown(0)]
public string walkingToDownState
Field Value
| Type | Description |
|---|---|
| string |
walkingToRightState
Declaration
[Header("Animator States")]
[AnimatorStatesDropdown(0)]
public string walkingToRightState
Field Value
| Type | Description |
|---|---|
| string |
walkingToUpState
Declaration
[AnimatorStatesDropdown(0)]
public string walkingToUpState
Field Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceGetInvertFlip()
Declaration
public bool GetInvertFlip()
Returns
| Type | Description |
|---|---|
| bool |
GetWalkDirection()
Declaration
public EWalkDirection GetWalkDirection()
Returns
| Type | Description |
|---|---|
| EWalkDirection |
GetWalkDirectionAsVector()
Declaration
public Vector2 GetWalkDirectionAsVector()
Returns
| Type | Description |
|---|---|
| Vector2 |
SetFacingDirectionFromExternalMounting(EWalkDirection)
Declaration
public void SetFacingDirectionFromExternalMounting(EWalkDirection newWalkDirection)
Parameters
| Type | Name | Description |
|---|---|---|
| EWalkDirection | newWalkDirection |
SetWalkDirection(EWalkDirection)
Declaration
public void SetWalkDirection(EWalkDirection direction)
Parameters
| Type | Name | Description |
|---|---|---|
| EWalkDirection | direction |
Stop()
Declaration
public void Stop()
UpdateAnimator()
Declaration
public void UpdateAnimator()