Behavior Canceling & Grouping
Behaviors are now grouped, behaviors within a group can cancel execution of the rest of the group
This commit is contained in:
parent
c24c155673
commit
fc94531566
35 changed files with 613 additions and 190 deletions
|
|
@ -244,7 +244,7 @@ public class StrategyGameManager : MonoBehaviour
|
|||
ship.Value.transform.position = float3(ship.Key.Position * ZoneSizeScale, .05f);
|
||||
ship.Value.Icon.transform.up = (Vector2) ship.Key.Direction;
|
||||
var thrusterScale = ship.Value.Thruster.localScale;
|
||||
thrusterScale.x = ship.Key.Axes.First(kvp => kvp.Key is Thruster).Value;
|
||||
thrusterScale.x = ship.Key.Axes[ship.Key.GetAxis<Thruster>()].Value;
|
||||
ship.Value.Thruster.localScale = thrusterScale;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue