Example #1
0
        void Start()
        {
            this.root = GameObject.Find("Robot");
            int count = 0;

            HakoniwaConfig cfg = GameObject.Find("Hakoniwa").GetComponentInChildren <HakoniwaConfig>();

            cfg.Initialize();

            foreach (Transform child in this.root.transform)
            {
                count++;
                Debug.Log("child=" + child.name);
                GameObject       obj  = root.transform.Find(child.name).gameObject;
                IAssetController ctrl = obj.GetComponentInChildren <Hakoniwa.Core.IAssetController>();
                ctrl.Initialize();
                this.assets.Add(ctrl);
            }
            this.diff_time         = new long[count];
            this.dbgMiconStimeSec  = new double[count];
            this.dbgDiffTimeMsec   = new double[count];
            this.delta_time        = (long)(Time.fixedDeltaTime * 1000000f);
            Physics.autoSimulation = false;
        }
Example #2
0
 public MainWindow(IAssetController aAssetController)
 {
     MyAssetController = aAssetController;
     InitializeComponent();
 }