mirror of
https://github.com/maxartz15/Validator.git
synced 2024-11-23 12:35:32 +01:00
Update README.md
This commit is contained in:
parent
9c01bed215
commit
b13cf47fbf
@ -16,10 +16,10 @@ public class MyBehaviour : MonoBehaviour, IValidatable
|
|||||||
#if UNITY_EDITOR
|
#if UNITY_EDITOR
|
||||||
public void Validate(Report report)
|
public void Validate(Report report)
|
||||||
{
|
{
|
||||||
// Check if health is valid.
|
// Check if health is valid.
|
||||||
if(startHealth <= 0)
|
if(startHealth <= 0)
|
||||||
{
|
{
|
||||||
// If not, log it.
|
// If not, log it.
|
||||||
report.Log(this, WarningType.Warning, ReportCategories.Design, $"{nameof(startHealth)} is to low", $"Make value > 0");
|
report.Log(this, WarningType.Warning, ReportCategories.Design, $"{nameof(startHealth)} is to low", $"Make value > 0");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -44,4 +44,4 @@ Run the validator:
|
|||||||
|
|
||||||
## LICENSE
|
## LICENSE
|
||||||
|
|
||||||
Overall package is licensed under [MIT](/LICENSE.md), unless otherwise noted in the [3rd party licenses](/THIRD%20PARTY%20NOTICES.md) file and/or source code.
|
Overall package is licensed under [MIT](/LICENSE.md), unless otherwise noted in the [3rd party licenses](/THIRD%20PARTY%20NOTICES.md) file and/or source code.
|
||||||
|
Loading…
Reference in New Issue
Block a user