コード例 #1
0
        private void Awake()
        {
            if (_photonView.IsMine)
            {
                _playerOnlineProperties = GameObject.FindWithTag(_propertiesTag).GetComponent <PlayerOnlineProperties>();

                _joystick = _playerOnlineProperties.MovementJoystick;
            }
        }
コード例 #2
0
        private void Awake()
        {
            if (!_photonView.IsMine)
            {
                return;
            }

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

            FindUIObjects();
        }
コード例 #3
0
ファイル: JetPack.cs プロジェクト: bekhzodov7mu/Final-Project
        private void Awake()
        {
            if (!_photonView.IsMine)
            {
                return;
            }

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

            _joystick = _playerOnlineProperties.MovementJoystick;

            _fuelParticles.SetActive(IsFlying);
        }
コード例 #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;
        }