Class ToolBase
Inheritance
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
ToolBase
Namespace: TycoonTerrain.Tools
Assembly: TycoonTerrainAssembly.dll
Syntax
[RequireComponent(typeof(TycoonTileRaycaster))]
public abstract class ToolBase : MonoBehaviour
Fields
OnToolDisabledEvent
Called when the tool is disabled.
Declaration
[HideInInspector]
public UnityEvent OnToolDisabledEvent
Field Value
Type | Description |
---|---|
Unity |
OnToolEnabledEvent
Called when the tool is enabled.
Declaration
[HideInInspector]
public UnityEvent OnToolEnabledEvent
Field Value
Type | Description |
---|---|
Unity |
Raycaster
Reference to the raycaster.
Declaration
protected TycoonTileRaycaster Raycaster
Field Value
Type | Description |
---|---|
Tycoon |
The Tycoon |
Properties
IsMouseOverTerrain
Whether the mouse cursor is currently hovering over a part of the terrain.
Declaration
public bool IsMouseOverTerrain { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
IsMouseOverUserInterface
Whether the mouse cursor is current hovering over any UI elements.
Declaration
public bool IsMouseOverUserInterface { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
Awake()
Unity Awake event.
Declaration
protected virtual void Awake()
OnDisable()
Unity OnDisable event.
Declaration
protected virtual void OnDisable()
OnEnable()
Unity OnEnable event.
Declaration
protected virtual void OnEnable()