PopulateMacros() public method

public PopulateMacros ( ) : void
return void
示例#1
0
            // Use this for initialization
            void Start()
            {
                objSelector = GameObject.Find("VoxWorld").GetComponent <ObjectSelector>();
                Macros macros = GameObject.Find("BehaviorController").GetComponent <Macros>();

                float start_time;
                float end_time;

                start_time = Time.realtimeSinceStartup;
                InitializeVoxemes();
                end_time = Time.realtimeSinceStartup;
                Debug.LogWarning("Initializing took " + (end_time - start_time) + " ... seconds?");

                start_time = Time.realtimeSinceStartup;
                objSelector.InitDisabledObjects();
                macros.PopulateMacros();
                end_time = Time.realtimeSinceStartup;
                Debug.LogWarning("Second step took " + (end_time - start_time) + " ... seconds?");
            }