BaseTool
BaseTool copied to clipboard
A big library of basic tools that you might need in your Unity projects.
It is currently impossible to stop a running cooldown. It must implements a `Kill()` method to stop it and immediately set the cooldown to ready. Maybe adding Pause/Resume methods could...
Create a system that allows gamedevs to easily add credentials (to list team members) and also display them.
If a custom drawer also has a `ConditionalAttribute` like `IfAttribute`, the element isn't drawn properly in the inspector. ```csharp public bool DisplayCooldown; [If("DisplayCooldown")] public Cooldown CooldownIf = 1.1f; ```
When UI module is used, this error occurs on the 0.5 version when try to build: ```st Library\PackageCache\com.lignus.basetool\Runtime\UI\Editor\UICustomScriptTemplates.cs(17,10): error CS0246: The type or namespace name 'MenuItemAttribute' could not be found...
Create a `Deck` class, maybe serializable, that can contains a number of elements, can be shuffled, draw, etc...
# Proposal Following [this post](https://codereview.stackexchange.com/a/108903), add a `IsPointInPolygon` method to check if a point is inside a polygon (which is a list of vectors). ```csharp public bool IsPointInPolygon(Vector2 point, Vector2[]...