File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Uchu.World/Systems/Behaviors Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ public override async Task BuildAsync()
35
35
DistanceToTarget = await GetParameter < float > ( "distance_to_target" ) ;
36
36
37
37
//dynamically load all possible behaviors the switch can have
38
- bool valid = true ;
39
- int count = 1 ;
38
+ var valid = true ;
39
+ var count = 1 ;
40
40
while ( valid ) {
41
- BehaviorBase Behavior = await GetBehavior ( "behavior " + count ) ;
42
- float Value = await GetParameter < float > ( "value " + count ) ;
41
+ var Behavior = await GetBehavior ( "behavior " + count ) ;
42
+ var Value = await GetParameter < float > ( "value " + count ) ;
43
43
if ( Behavior == null || Behavior == default || Behavior . BehaviorId == 0 ) {
44
44
valid = false ;
45
45
} else {
@@ -53,7 +53,7 @@ public override async Task BuildAsync()
53
53
protected override void DeserializeStart ( BitReader reader , SwitchMultipleBehaviorExecutionParameters parameters )
54
54
{
55
55
parameters . Value = reader . Read < float > ( ) ;
56
- BehaviorBase currentBehavior = Behaviors [ 0 ] ;
56
+ var currentBehavior = Behaviors [ 0 ] ;
57
57
//check each behavior's threshold to see if we go past it, when we find one that's too much we break out of the loop
58
58
for ( int i = 1 ; i < Values . Count ( ) ; i ++ ) {
59
59
if ( parameters . Value > Values [ i - 1 ] ) {
You can’t perform that action at this time.
0 commit comments