Hello,
i have this little problem:
i want to get Enum choice to set it into the script:
here is a little portion of code from it
[System.Serializable]
public class GlobalConfiguration
{
// Global config
public string worldName;
public enum MapOrientations
{
xz,
xy
}
public MapOrientations mapOrientation;
my code
[ObjectType(typeof(TileWorldConfiguration.GlobalConfiguration.MapOrientations))]
public FsmEnum MapOrientation;
configuration.global.mapOrientation = MapOrientation.Value;
my error:
Cannot implicitly convert type 'system.Enum' to Blablabla.MapOrientations'
An Explicit conversion exists (are you missing a cast? yes certainly...)
what is the magic formule for this conversion ?