File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 55 <TargetFrameworks >net472</TargetFrameworks >
66 <AssemblyName >SZones</AssemblyName >
77 <RootNamespace >SZones</RootNamespace >
8- <Version >1.1.3.1 </Version >
8+ <Version >1.1.3.2 </Version >
99 <NoWarn >$(NoWarn);CS0436</NoWarn >
1010 <RunPostBuildEvent >Always</RunPostBuildEvent >
1111 <Nullable >annotations</Nullable >
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ public abstract class BoxColliderZone<TController> : Zone<TController>
55{
66 public override SVector3 Position
77 {
8- get => Controller ? . Collider . center ?? base . Position ;
8+ get
9+ {
10+ if ( Controller is null ) return base . Position ;
11+ var center = Controller . Collider . center ;
12+ center . y = Controller . Collider . bounds . min . y ;
13+ return center ;
14+ }
915 set
1016 {
1117 base . Position = value ;
You can’t perform that action at this time.
0 commit comments