This commit is contained in:
CortexCore
2023-11-15 23:54:54 +08:00
parent ee3ecec6cb
commit 3c837a4a33
356 changed files with 73756 additions and 26493 deletions

View File

@@ -0,0 +1,26 @@
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);
}
}