The purpose of this thread is very simple and general. I'm trying to create a method to have within a certain Strategy script. My method could be something like this:
#region Variables
private int x = 1; // counter
#endregion
public bool core ( int x )
{
if (x==1)
{
if (Any comparison )
{
return true;
}
return false;
}
}
Something is wrong cause any time I try to compile, it gives me an error message like:
" Not every code path gives a value "
- Could you tell what is my mistake ?
- Where must I declare this method ? I couldn't find good enough info in help
Thanks
Comment