Let's consider the following code :
Class AClass : SKNode
{
func AFunction ()
{
// Some code
}
}
var AnArrayOfAClass[AClass]()
AnArrayOfAClass[x].AFunction
How can I know in AFunction the value of the index when I call the method AFunction (index is x in the example of call I want to do like in the last line of code just above) ? Is there a way to avoid to pass it as an argument of AFunction ?
Thx
J.
AnArrayOfAClass?