I used to write my game in visual studio however it just happend to be way to weak to handle it and i decided to switch to unity and also take my code with me. In vs2015 i used C# 6 but i think unity is still on older version because it wont accept some of my lines as proper here are few examples
protected override double percentageIncrease { get; } = StatsIncreaments.MagicPowerIncreament;
this is really weird because it accepts auto properties with only get
and set
but this one is not recognized as proper.
Also any expression bodied functions are not tolerated as well :
public double CalculateExperience() => currentLevel * (currentLevel * 1.1) * 10;
Is there any way to make unity accept my code ?