27 lines
781 B
C#
27 lines
781 B
C#
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using BITKit;
|
||
|
using Unity.Mathematics;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace BITFALL.Placement
|
||
|
{
|
||
|
[Serializable]
|
||
|
public class IsPlaceable:IProperty
|
||
|
{
|
||
|
[SerializeField] private UnityPlacementObject placementObject;
|
||
|
public IPlacementObject PlacementObject => placementObject;
|
||
|
}
|
||
|
public class AssetablePlacement : AssetableItem,IPlacementObject
|
||
|
{
|
||
|
[SerializeField] private UnityPlacementObject placementObject;
|
||
|
public IPlacementObject Object => placementObject;
|
||
|
public float PositionIncrement => Object.PositionIncrement;
|
||
|
public int RotationIncrement => Object.RotationIncrement;
|
||
|
public int3 Size=>placementObject.Size;
|
||
|
public IPlacementObject CreateInstance() => Instantiate(placementObject);
|
||
|
}
|
||
|
|
||
|
}
|