Added saving of buildings
This commit is contained in:
@@ -14,8 +14,18 @@ namespace Fruitomation.Game
|
||||
|
||||
private BuildingManager Manager;
|
||||
|
||||
public void SetManager(BuildingManager manager) => Manager = manager;
|
||||
|
||||
public Vector2Int GridPosition { get; private set; }
|
||||
public Vector2Int Position { get; private set; }
|
||||
public bool IsFlipped { get; private set; }
|
||||
|
||||
public void Init(BuildingManager manager, Vector2Int gridPosition, Vector2Int position, bool isFlipped)
|
||||
{
|
||||
GridPosition = gridPosition;
|
||||
IsFlipped = isFlipped;
|
||||
Position = position;
|
||||
Manager = manager;
|
||||
}
|
||||
|
||||
[UsedImplicitly, Preserve, InspectorCallable("Click Building")] public void OnBuildingClicked()
|
||||
{
|
||||
Debug.Log($"Building clicked {gameObject.name}");
|
||||
|
||||
Reference in New Issue
Block a user