Esempio n. 1
0
        // Use this for initialization
        void Start()
        {
            CanvasScaler scaler = GameObject.Find("TDDMenu").GetComponent <CanvasScaler>();

            referenceWidth = scaler.referenceResolution.x;

            //testCase = GetComponent<DemoTest3>();
            testCase = FindObjectOfType <BaseTest>();
            Debug.Log("TestCase object=" + testCase);

            if (testCase == null)
            {
                Debug.LogError("SimpleTDDTest: testCase undefined.\n"
                               + "Please create using Assets/Create/Simple TDD Script");
                return;
            }

            //CalculateButtonSize();

            List <string> testList = testCase.GetSubTestList();

            CreateSubtestButton(testList);


//		foreach(string test in testList) {
//			Debug.Log("test=" + test);
//		}
        }