private void Awake() { if (_photonView.IsMine) { _playerOnlineProperties = GameObject.FindWithTag(_propertiesTag).GetComponent <PlayerOnlineProperties>(); _joystick = _playerOnlineProperties.MovementJoystick; } }
private void Awake() { if (!_photonView.IsMine) { return; } _playerOnlineProperties = GameObject.FindWithTag(_propertiesTag).GetComponent <PlayerOnlineProperties>(); FindUIObjects(); }
private void Awake() { if (!_photonView.IsMine) { return; } _playerOnlineProperties = GameObject.FindWithTag(_propertiesTag).GetComponent <PlayerOnlineProperties>(); _joystick = _playerOnlineProperties.MovementJoystick; _fuelParticles.SetActive(IsFlying); }
private void Awake() { if (!_photonView.IsMine) { return; } _playerOnlineProperties = GameObject.FindWithTag(_propertiesTag).GetComponent <PlayerOnlineProperties>(); _healthSlider = _playerOnlineProperties.HealthSlider; _cameraShake = _playerOnlineProperties.Camera.GetComponent <CameraShake>(); _playerOnline.OnRespawn += SetLifeProperties; }