19 lines
548 B
C#
19 lines
548 B
C#
using UnityEngine;
|
|
|
|
public class InteractMoveObject : Interact
|
|
{
|
|
[SerializeField] private bool requiresReview = false;
|
|
|
|
public override void OnInteract()
|
|
{
|
|
base.OnInteract();
|
|
triggerObject.transform.position += new Vector3(0, 5, 0);
|
|
Debug.Log($"Moved {triggerObject.name} up by 5 units!");
|
|
|
|
// Notify LevelManager for review after interaction
|
|
if (requiresReview && LevelManager.Instance != null)
|
|
{
|
|
LevelManager.Instance.RequestReview(gameObject);
|
|
}
|
|
}
|
|
} |