Firstborn/Assets/RPG Creation Kit/Scripts/NPCs/NPC Path System/NPC_PathPoint.cs
Schaken-Mods 959e80cf72 assets upload
assets upload description.
2023-03-28 12:16:30 -05:00

28 lines
735 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using RPGCreationKit;
namespace RPGCreationKit
{
/// <summary>
/// A point of a NPC_Path
/// </summary>
[ExecuteInEditMode]
public class NPC_PathPoint : MonoBehaviour
{
public bool Wait = false; // Should the NPC wait at this point?
[HideInInspector] public float WaitTime = 2; // If so, how much time? (seconds)
[HideInInspector] public Transform DirectionToFace; // Direction to face while waiting
// Draw NPC_Path gizmos
public void OnDrawGizmosSelected()
{
this.transform.parent.SendMessage("OnDrawGizmosSelected");
}
}
}