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
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Class)] | |
public class TypeValidationAttribute : PropertyAttribute | |
{ | |
public Type typeToValidate; | |
public TypeValidationAttribute(Type typeToValidate) | |
{ | |
this.typeToValidate = typeToValidate; | |
} | |
} |
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
public class RandomAnimalNameGeneratorService : MonoBehaviour | |
{ | |
[FormerlySerializedAs("colorsTextAsset")] | |
public TextAsset firstNameTextAsset; | |
[FormerlySerializedAs("adjectivesTextAsset")] | |
public TextAsset secondNameTextAsset; | |
[FormerlySerializedAs("namesTextAsset")] | |
public TextAsset thirdNameTextAsset; |
OlderNewer