LethalCompany/Lethal Company/ExportedProject/Assets/Scripts/Assembly-CSharp/SpawnableOutsideObject.cs

18 lines
498 B
C#
Raw Normal View History

2023-12-22 22:51:17 +00:00
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;
}