- Home /
interfaces ? whats going on here !!
If someone Could tell me what is going on in here with this script that would be great :)
I happen to have understood interfaces and have written very simple classes within one folder but this example is quite tedious.
Can you please explain me what is happening with the first 10 15 line in this example ?
looks like my image did not upload properly apologies friends
@Parzivell @$$anonymous$$onsnos i uploded the problem image please have a look
Answer by LRG · Dec 22, 2014 at 09:49 AM
static CrossPlatformInputManager() is a static constructor.
It will be called only once, before any instance of the class is created, and is typically used for initializing the static members of a class etc.
In this case it is assigning different Input classes depending on whether the program is being compiled for mobile or not.
thank you :) and what about those red line i have indicated with ( i mean in the code )
can you please reply with the link for documentation/manual where i can read about them
thanks man
ah, those are just namespaces Basically, to organize the code and to split it into modules.
thank you , i just realised i wrote interface ins$$anonymous$$d of namespace. silly me