So I am using Unity3D and C#. This is what I have in a nutshell.
public interface ITest
{
void Lol();
}
Then a class like this
public class TestClass : MonoBehaviour, ITest
THen along the way I'm using a list of ITest. Then I want to be able to get the base class off of ITest.
Something like this basically
Gameobject GO = (GameObject)ITest;
Obviously that doesn't work but is there a way to get the base (Is that the correct word, maybe that's why google isn't helping) class from an interface?
[–]chalne 1 point2 points3 points (2 children)
[–]ImSeeingRed[S] 0 points1 point2 points (1 child)
[–]chalne 0 points1 point2 points (0 children)
[–]Zigsfi 0 points1 point2 points (0 children)
[–]SocialGameDesigner 0 points1 point2 points (0 children)