LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/SpawnableOutsideObject.cs
2023-12-22 18:30:10 -05:00

17 lines
498 B
C#

using UnityEngine;
[CreateAssetMenu(menuName = "ScriptableObjects/SpawnableOutsideObject", order = 2)]
public class SpawnableOutsideObject : ScriptableObject
{
public GameObject prefabToSpawn;
public bool spawnFacingAwayFromWall;
[Tooltip("This is used to determine how close this object can spawn to edges of the nav mesh.")]
public int objectWidth;
[Tooltip("If null, allows spawning this object on any surface.")]
public string[] spawnableFloorTags;
public Vector3 rotationOffset;
}