mirror of
https://github.com/LazyDuchess/OpenTS2.git
synced 2025-01-23 00:31:47 -05:00
Fix typo, hood deco rotation
This commit is contained in:
parent
7ad31c8440
commit
d282ecf4c5
2 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ namespace OpenTS2.Content
|
|||
{
|
||||
public class Neighborhood
|
||||
{
|
||||
public NeighborhoodDecorationsAsset Deocrations => ContentProvider.Get()
|
||||
public NeighborhoodDecorationsAsset Decorations => ContentProvider.Get()
|
||||
.GetAsset<NeighborhoodDecorationsAsset>(new ResourceKey(0, GroupID, TypeIDs.NHOOD_DECORATIONS));
|
||||
public NeighborhoodTerrainAsset Terrain => ContentProvider.Get().GetAsset<NeighborhoodTerrainAsset>(new ResourceKey(0, GroupID, TypeIDs.NHOOD_TERRAIN));
|
||||
public Type NeighborhoodType => _info.NeighborhoodType;
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace OpenTS2.Scenes
|
|||
void Start()
|
||||
{
|
||||
var contentProvider = ContentProvider.Get();
|
||||
var decorations = NeighborhoodManager.CurrentNeighborhood.Deocrations;
|
||||
var decorations = NeighborhoodManager.CurrentNeighborhood.Decorations;
|
||||
|
||||
foreach (var flora in decorations.FloraDecorations)
|
||||
{
|
||||
|
@ -28,7 +28,7 @@ namespace OpenTS2.Scenes
|
|||
|
||||
var decorationObject = model.CreateGameObjectForShape();
|
||||
decorationObject.transform.position = flora.Position.Position;
|
||||
decorationObject.transform.Rotate(0, 0, flora.Rotation);
|
||||
decorationObject.transform.Rotate(0, 0, -flora.Rotation);
|
||||
}
|
||||
|
||||
foreach (var prop in decorations.PropDecorations)
|
||||
|
@ -43,7 +43,7 @@ namespace OpenTS2.Scenes
|
|||
|
||||
var decorationObject = model.CreateGameObjectForShape();
|
||||
decorationObject.transform.position = prop.Position.Position;
|
||||
decorationObject.transform.Rotate(0, 0, prop.Rotation);
|
||||
decorationObject.transform.Rotate(0, 0, -prop.Rotation);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue