Exemplo n.º 1
0
        private void Awake()
        {
            if (_photonView.IsMine)
            {
                _playerOnlineProperties = GameObject.FindWithTag(_propertiesTag).GetComponent <PlayerOnlineProperties>();

                _joystick = _playerOnlineProperties.MovementJoystick;
            }
        }
Exemplo n.º 2
0
        private void Awake()
        {
            if (!_photonView.IsMine)
            {
                return;
            }

            _playerOnlineProperties = GameObject.FindWithTag(_propertiesTag).GetComponent <PlayerOnlineProperties>();

            FindUIObjects();
        }
Exemplo n.º 3
0
        private void Awake()
        {
            if (!_photonView.IsMine)
            {
                return;
            }

            _playerOnlineProperties = GameObject.FindWithTag(_propertiesTag).GetComponent <PlayerOnlineProperties>();

            _joystick = _playerOnlineProperties.MovementJoystick;

            _fuelParticles.SetActive(IsFlying);
        }
Exemplo n.º 4
0
        private void Awake()
        {
            if (!_photonView.IsMine)
            {
                return;
            }

            _playerOnlineProperties = GameObject.FindWithTag(_propertiesTag).GetComponent <PlayerOnlineProperties>();

            _healthSlider = _playerOnlineProperties.HealthSlider;
            _cameraShake  = _playerOnlineProperties.Camera.GetComponent <CameraShake>();

            _playerOnline.OnRespawn += SetLifeProperties;
        }