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:
hyperion51 2020-05-11 01:17:10 +01:00
commit fc94531566
35 changed files with 613 additions and 190 deletions

View file

@ -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;
}
}