Warning: A non-numeric value encountered in /homepages/31/d121558763/htdocs/InspireGames/wp-content/themes/Divi/functions.php on line 5560

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/31/d121558763/htdocs/InspireGames/wp-includes/post-template.php on line 265

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/31/d121558763/htdocs/InspireGames/wp-includes/post-template.php on line 265

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/31/d121558763/htdocs/InspireGames/wp-includes/post-template.php on line 265

Warning: count(): Parameter must be an array or an object that implements Countable in /homepages/31/d121558763/htdocs/InspireGames/wp-includes/post-template.php on line 265
void Start () {
    ITest[] tests = ConvertToArray<ITest>(GetComponents(typeof(ITest)));
    Debug.Log(tests.Length, this);

    ITest test = GetComponent(typeof(ITest)) as ITest;
    Debug.Log(test != null ? "Found ITest" : "ITest Not Found", this);
}

public static T[] ConvertToArray<T>(IList list)
{
    T[] ret = new T[list.Count];
    list.CopyTo(ret, 0);
    return ret;
}