Fix typo, hood deco rotation

This commit is contained in:
Nahuel Rocchetti 2023-07-26 20:19:19 -03:00
parent 7ad31c8440
commit d282ecf4c5
2 changed files with 4 additions and 4 deletions

View file

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

View file

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