WIP : Props placement and lighting test
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 581e1488df9d96149925217dbedad049
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c9e77f5824725bb49a41c5775a81bf2b
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using Unheimlich.Features.Hallucination;
|
||||
|
||||
namespace Unheimlich.World.Environment
|
||||
{
|
||||
/// <summary>
|
||||
/// Configuration for a single stair slot.
|
||||
/// Slot indices are relative: 0 = ground level, positive = up, negative = down.
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class StaircaseSlotData
|
||||
{
|
||||
[Tooltip("Slot index this data applies to. 0 = ground, positive = up, negative = down.")]
|
||||
public int SlotIndex;
|
||||
|
||||
[Tooltip("Word displayed on the FloatingLabel of this segment.")]
|
||||
public string Word;
|
||||
|
||||
[Tooltip("Optional hallucination event fired when the player enters this segment's zone.")]
|
||||
public HallucinationEvent HallucinationEvent;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ScriptableObject holding the full word/event sequence for one staircase.
|
||||
/// Each slot entry binds a display word and an optional hallucination event to a given slot index.
|
||||
/// Slots not listed here receive no word and fire no event.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Create via Assets › Create › Unheimlich › Hallucination › Staircase Sequence Data.
|
||||
/// </remarks>
|
||||
[CreateAssetMenu(
|
||||
fileName = "StaircaseSequenceData",
|
||||
menuName = "Unheimlich/Hallucination/Staircase Sequence Data")]
|
||||
public class StaircaseSequenceData : ScriptableObject
|
||||
{
|
||||
[Tooltip("Per-slot configuration. Slots not listed here get no word and no event.")]
|
||||
public List<StaircaseSlotData> Slots = new();
|
||||
}
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f9be4fbaead86548b21371bf4598477
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 18369b1856c5f624cb3fd42a13f0292c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
-32
@@ -5,38 +5,6 @@ using Unheimlich.Features.Hallucination;
|
||||
|
||||
namespace Unheimlich.World.Environment
|
||||
{
|
||||
// ─── Data ─────────────────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>
|
||||
/// Configuration for a single stair slot.
|
||||
/// Slot indices are relative: 0 = ground level, positive = up, negative = down.
|
||||
/// </summary>
|
||||
[System.Serializable]
|
||||
public class StaircaseSlotData
|
||||
{
|
||||
[Tooltip("Slot index this data applies to. 0 = ground, positive = up, negative = down.")]
|
||||
public int SlotIndex;
|
||||
|
||||
[Tooltip("Word displayed on the FloatingLabel of this segment.")]
|
||||
public string Word;
|
||||
|
||||
[Tooltip("Optional hallucination event fired when the player enters this segment's zone.")]
|
||||
public HallucinationEvent HallucinationEvent;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ScriptableObject holding the full word/event sequence for one staircase.
|
||||
/// Create via Assets > Create > Unheimlich > Hallucination > Staircase Sequence Data.
|
||||
/// </summary>
|
||||
[CreateAssetMenu(
|
||||
fileName = "StaircaseSequenceData",
|
||||
menuName = "Unheimlich/Hallucination/Staircase Sequence Data")]
|
||||
public class StaircaseSequenceData : ScriptableObject
|
||||
{
|
||||
[Tooltip("Per-slot configuration. Slots not listed here get no word and no event.")]
|
||||
public List<StaircaseSlotData> Slots = new();
|
||||
}
|
||||
|
||||
// ─── Controller ───────────────────────────────────────────────────────────────
|
||||
|
||||
public class InfiniteStaircaseController : MonoBehaviour
|
||||
Reference in New Issue
Block a user