Пример #1
0
 void Start()
 {
     _main          = GetComponent <Main>();
     _properties    = GetComponent <Properties>();
     _log           = GetComponent <VisualLog>();
     _bodiesManager = GameObject.Find("BodiesManager").GetComponent <BodiesManager>();
     _rpc           = GetComponent <RPCWorkspace>();
 }
Пример #2
0
 void _init()
 {
     _main          = GetComponent <Main>();
     _networkView   = GetComponent <NetworkView>();
     _negativeSpace = GetComponent <NegativeSpace>();
     _properties    = GetComponent <Properties>();
     _log           = GetComponent <VisualLog>();
     _running       = true;
 }
Пример #3
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(this.gameObject);
     }
 }
        public void OnInit(InitContext context)
        {
            if (context == InitContext.Activate)
            {
                _rigidbody       = GameObj.GetComponent <RigidBody>();
                previousPosition = GameObj.Transform.Pos;

                _log = new VisualLog("projectile raycasts");

                _gameCamera = Scene.Current.FindComponent <Camera>();
            }
        }
Пример #5
0
    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();
        }
    }
Пример #6
0
 void Awake()
 {
     _log      = GetComponent <VisualLog>();
     _location = GetComponent <Main>().location;
 }
 void Awake()
 {
     _log        = GetComponent <VisualLog>();
     _properties = GetComponent <Properties>();
     _main       = GetComponent <Main>();
 }