コード例 #1
0
 void Start()
 {
     _main          = GetComponent <Main>();
     _properties    = GetComponent <Properties>();
     _log           = GetComponent <VisualLog>();
     _bodiesManager = GameObject.Find("BodiesManager").GetComponent <BodiesManager>();
     _rpc           = GetComponent <RPCWorkspace>();
 }
コード例 #2
0
ファイル: Main.cs プロジェクト: mauriciosousa/CoisosDoTracker
    void Awake()
    {
        Application.runInBackground = true;
        _surfaceRequestListener     = GetComponent <SurfaceRequestListener>();
        _properties            = GetComponent <Properties>();
        _log                   = GetComponent <VisualLog>();
        _negativeSpace         = GetComponent <NegativeSpace>();
        _bodiesListener        = GameObject.Find("BodiesManager").GetComponent <UdpBodiesListener>();
        _bodies                = GameObject.Find("BodiesManager").GetComponent <BodiesManager>();
        _prespectiveProjection = Camera.main.GetComponent <PerspectiveProjection>();
        _tracker               = GameObject.Find("RavatarManager").GetComponent <Tracker>();
        _tcpKinectListener     = GameObject.Find("RavatarManager").GetComponent <TcpKinectListener>();
        _workspace             = GetComponent <RPCWorkspace>();

        _properties.load();

        ConfigLoaded = _properties.ConfigLoaded;

        if (!ConfigLoaded)
        {
            _log.Show = true;
        }
        else
        {
            _log.WriteLine(this, "Config Loaded");
            _surfaceRequestListener.StartReceive();
        }

        if (location == Location.A)
        {
            _workspace.InitServer();
        }
        else
        {
            _workspace.InitClient();
        }
    }