void Start()
 {
     IsTracking    = false;
     _client       = TcpUnityClient.instance;
     _colorState   = colorState.GetComponent <ColorState>();
     _colorChanger = colorPicker.GetComponent <RandomColorChanger>();
     _animatior    = colorState.GetComponent <Animator>();
     _camera       = GetComponent <Camera>();
     _meshRender   = _colorState.GetComponent <MeshRenderer>();
 }
Ejemplo n.º 2
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        _receiveManager = new ReceiveManager(GetComponents <IReceivable>());
        SetupSocket();
    }