This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DONT PUT IN EDITOR FOLDER | |
using System; | |
using UnityEngine; | |
/// <summary> | |
/// Attribute used to show or hide the Field depending on certain conditions | |
/// </summary> | |
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] | |
public class ShowWhenAttribute : PropertyAttribute { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace Helpers | |
{ | |
public static class FloatHelper | |
{ | |
/// <summary> | |
/// Convert the number to the nearest value of a given multiple. | |
/// Function from StackOverflow response <see href="https://stackoverflow.com/a/34444056">HERE</see> | |
/// </summary> |