Esempio n. 1
0
        private void Awake() {
            _transform = GetComponent<Transform>();
            _renderer = GetComponent<Renderer>();
            _networkView = GetComponent<NetworkView>();
            _destination = transform.position;
            _renderer.material.color = kColors[Random.Range(0, kColors.Length)];

            _transformInterpolation = new NetworkTransformInterpolation();
            _transformInterpolation.InterpolationBackTime = NetworkInterpolationBackTime;
        }
Esempio n. 2
0
        private void Awake()
        {
            _transform               = GetComponent <Transform>();
            _renderer                = GetComponent <Renderer>();
            _networkView             = GetComponent <NetworkView>();
            _destination             = transform.position;
            _renderer.material.color = kColors[Random.Range(0, kColors.Length)];

            _transformInterpolation = new NetworkTransformInterpolation();
            _transformInterpolation.InterpolationBackTime = NetworkInterpolationBackTime;
        }