Push objects (Box) NOTE require CharacterActionGroundMovement
More...
◆ GainControl()
override void UnityPlatformer.CharacterActionPull.GainControl |
( |
float |
delta | ) |
|
|
inlinevirtual |
◆ GetPostUpdateActions()
override PostUpdateActions UnityPlatformer.CharacterActionPull.GetPostUpdateActions |
( |
| ) |
|
|
inlinevirtual |
◆ LoseControl()
override void UnityPlatformer.CharacterActionPull.LoseControl |
( |
float |
delta | ) |
|
|
inlinevirtual |
◆ OnAfterMove()
void UnityPlatformer.CharacterActionPull.OnAfterMove |
( |
Character |
ch, |
|
|
float |
delta |
|
) |
| |
|
inline |
Move the Box after moving the character, so there is a gap between them
◆ OnEnable()
override void UnityPlatformer.CharacterActionPull.OnEnable |
( |
| ) |
|
|
inlinevirtual |
◆ PerformAction()
override void UnityPlatformer.CharacterActionPull.PerformAction |
( |
float |
delta | ) |
|
|
inlinevirtual |
◆ PullBox()
void UnityPlatformer.CharacterActionPull.PullBox |
( |
Vector3 |
velocity, |
|
|
Directions |
dir, |
|
|
float |
delta |
|
) |
| |
|
inline |
◆ WantsToUpdate()
override int UnityPlatformer.CharacterActionPull.WantsToUpdate |
( |
float |
delta | ) |
|
|
inlinevirtual |
Tells the character we want to take control
- Positive numbers fight: Higher number wins
- Negative numbers are used to ignore fight and force Character to call PerformAction, but! because it doesn't win the fight onLoseControl, onGrainControl and GetPostUpdateActions are ignored.
NOTE can be used as a replace for UpdateManager.PlatformerUpdate
Implements UnityPlatformer.CharacterAction.
◆ accelerationTime
float UnityPlatformer.CharacterActionPull.accelerationTime = .1f |
◆ action
String UnityPlatformer.CharacterActionPull.action = "Pull" |
◆ forbidVerticalMovement
bool UnityPlatformer.CharacterActionPull.forbidVerticalMovement = true |
Limit Pull movement to X
if false, you will see problems while on slopes, but maybe it's desired...
◆ priority
int UnityPlatformer.CharacterActionPull.priority = 20 |
◆ speed
float UnityPlatformer.CharacterActionPull.speed = 3 |
The documentation for this class was generated from the following file:
- Assets/UnityPlatformer/Scripts/Characters/Actions/CharacterActionPull.cs