2023-01-22 16:38:23 +01:00
|
|
|
|
using System;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace ABI.CCK.Components
|
|
|
|
|
{
|
2024-08-03 22:24:42 +02:00
|
|
|
|
[AddComponentMenu("ChilloutVR/Control Point")]
|
|
|
|
|
[HelpURL("https://developers.abinteractive.net/cck/")]
|
|
|
|
|
public class ControlPoint : MonoBehaviour, ICCK_Component
|
2023-01-22 16:38:23 +01:00
|
|
|
|
{
|
|
|
|
|
public GameInstanceController gameInstanceController;
|
|
|
|
|
public string referenceID;
|
|
|
|
|
public float captureTime = 10f;
|
|
|
|
|
public bool captureBonusForMultiplePeople = false;
|
|
|
|
|
public float recaptureDelay = 30f;
|
|
|
|
|
public int scorePerSecond = 1;
|
|
|
|
|
|
|
|
|
|
private void Reset()
|
|
|
|
|
{
|
|
|
|
|
referenceID = Guid.NewGuid().ToString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|