Class GridEventTrigger
This is a simple event trigger for 2D grids. To use it, add it on your grid builder, and link in the methods you want to trigger in the respective fields.
public class GridEventTrigger : GridBehaviour<GridPoint2, TileCell>
- Inheritance
-
GridEventTrigger
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.runInEditModeComponent.GetComponent<T>()Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentsInParent<T>()Component.transformComponent.gameObjectComponent.tagObject.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object)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.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.nameObject.hideFlags
Properties
- MousePosition
Gets the mouse position as a grid point.
- OnLeftMouseButtonDown
Gets the GridEvent associate with clicking the left mouse button.
- OnRightMouseButtonDown
Gets the GridEvent associate with clicking the right mouse button.
- UICamera
Gets or sets the camera used to interpret mouse events, usually the camera used to render the UI.
Methods
- Update()
Called by the game engine.
See Also
GridBehaviour<TPoint, TCell>