TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.TopDownEngine.ProximityManaged Class Reference

A class to add to any object in your scene to mark it as managed by a proximity manager. More...

Inheritance diagram for MoreMountains.TopDownEngine.ProximityManaged:
MoreMountains.TopDownEngine.TopDownMonoBehaviour MoreMountains.Tools.MMMonoBehaviour

Public Member Functions

virtual void DebugAddObject ()
 A debug method used to add this object to a proximity manager.
virtual void ProximitySetActive (bool status)

Public Attributes

float EnableDistance = 35f
 the distance from the proximity center (the player) under which the object should be enabled
float DisableDistance = 45f
 the distance from the proximity center (the player) after which the object should be disabled
bool DisabledByManager
 whether or not this object was disabled by the ProximityManager
int LastChangeAt
 the frame count at which this object got disabled
ProximityManager DebugProximityManager
 a debug manager to add this object to, only used for debug
bool AddButton
 a debug button to add this object to the debug manager

Properties

virtual ProximityManager Manager [get, set]
virtual bool StateChangedThisFrame [get]

Detailed Description

A class to add to any object in your scene to mark it as managed by a proximity manager.

Member Function Documentation

◆ DebugAddObject()

virtual void MoreMountains.TopDownEngine.ProximityManaged.DebugAddObject ( )
virtual

A debug method used to add this object to a proximity manager.

◆ ProximitySetActive()

virtual void MoreMountains.TopDownEngine.ProximityManaged.ProximitySetActive ( bool status)
virtual

Member Data Documentation

◆ AddButton

bool MoreMountains.TopDownEngine.ProximityManaged.AddButton

a debug button to add this object to the debug manager

◆ DebugProximityManager

ProximityManager MoreMountains.TopDownEngine.ProximityManaged.DebugProximityManager

a debug manager to add this object to, only used for debug

◆ DisabledByManager

bool MoreMountains.TopDownEngine.ProximityManaged.DisabledByManager

whether or not this object was disabled by the ProximityManager

◆ DisableDistance

float MoreMountains.TopDownEngine.ProximityManaged.DisableDistance = 45f

the distance from the proximity center (the player) after which the object should be disabled

◆ EnableDistance

float MoreMountains.TopDownEngine.ProximityManaged.EnableDistance = 35f

the distance from the proximity center (the player) under which the object should be enabled

◆ LastChangeAt

int MoreMountains.TopDownEngine.ProximityManaged.LastChangeAt

the frame count at which this object got disabled

Property Documentation

◆ Manager

virtual ProximityManager MoreMountains.TopDownEngine.ProximityManaged.Manager
getset

◆ StateChangedThisFrame

virtual bool MoreMountains.TopDownEngine.ProximityManaged.StateChangedThisFrame
get

The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/Common/Scripts/Environment/ProximityManaged.cs