Class SpottableObjectComponent
public class SpottableObjectComponent : MonoBehaviour, IManualOnDestroy
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourSpottableObjectComponent
- Implements
-
IManualOnDestroy
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.destroyCancellationTokenMonoBehaviour.useGUILayoutBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.GetComponentIndex()Component.transformComponent.gameObjectComponent.tagObject.GetInstanceID()Object.GetHashCode()Object.InstantiateAsync<T>(T)Object.InstantiateAsync<T>(T, Transform)Object.InstantiateAsync<T>(T, Vector3, Quaternion)Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)Object.InstantiateAsync<T>(T, InstantiateParameters)Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Scene)Object.Instantiate<T>(T, InstantiateParameters)Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Properties
Buildable
public IBuildable? Buildable { get; }
Property Value
IsSpotted
If a player or UAV is spotting this object.
public bool IsSpotted { get; }
Property Value
Player
public WarfarePlayer? Player { get; }
Property Value
Type
The category of object being spotted.
public SpottedType Type { get; }
Property Value
Vehicle
public InteractableVehicle? Vehicle { get; }
Property Value
- InteractableVehicle
VehicleType
The category of vehicle being spotted, or None if not a vehicle.
public VehicleType VehicleType { get; }
Property Value
Methods
GetOrAddIfValid(InteractableVehicle)
public static SpottableObjectComponent? GetOrAddIfValid(InteractableVehicle vehicle)
Parameters
vehicleInteractableVehicle
Returns
GetOrAddIfValid(IBuildable)
public static SpottableObjectComponent? GetOrAddIfValid(IBuildable buildable)
Parameters
buildableIBuildable
Returns
GetOrAddIfValid(WarfarePlayer)
public static SpottableObjectComponent? GetOrAddIfValid(WarfarePlayer player)
Parameters
playerWarfarePlayer
Returns
IsLaserTarget(Team)
If this object is an active target for laser guided missiles.
public bool IsLaserTarget(Team team)
Parameters
teamTeam
Returns
OnPositionUpdated()
public void OnPositionUpdated()
RemoveAllSpotters()
public void RemoveAllSpotters()
RemoveSpotter(ISpotter)
public bool RemoveSpotter(ISpotter spotter)
Parameters
spotterISpotter
Returns
TryAddSpotter(ISpotter, float)
public bool TryAddSpotter(ISpotter spotter, float duration = NaN)