CustomAssets
Askowl Custom Assets
Mutable/Boolean.cs
1 // Copyright 2018 (C) paul@marrington.net http://www.askowl.net/unity-packages
2 
3 using UnityEngine;
4 
5 namespace CustomAsset.Mutable {
6  /// <a href="http://bit.ly/2QP2Kn9">Boolean custom asset. Triggers event when changing from true to false or false to true</a>
7  [CreateAssetMenu(menuName = "Custom Assets/Mutable/Boolean")]
8  public class Boolean : OfType<bool> {
9  /// <a href="http://bit.ly/2QP2Kn9"></a>
10  public static Boolean Instance(string name) => Instance<Boolean>(name);
11  }
12 }
Base class for a custom asset. Provides getters and setters for the contained value and templates for...