Пример #1
0
        public void TestSetup()
        {
            m_PrefabRoot = Object.Instantiate(Resources.Load("TestToggleGroup")) as GameObject;

            m_toggleGroup = m_PrefabRoot.GetComponentInChildren <TestableToggleGroup>();
            m_toggle.AddRange(m_PrefabRoot.GetComponentsInChildren <Toggle>());
        }
Пример #2
0
 public void TearDown()
 {
     m_toggle.Clear();
     m_toggleGroup = null;
     Object.DestroyImmediate(m_PrefabRoot);
 }