Exemplo n.º 1
0
 public void OnEnable()
 {
     var vibrator = (PlayerVibrator)target;
     _dartVib = vibrator.gameObject.GetComponent<DartVibration>();
     _gunVib = vibrator.gameObject.GetComponent<GunVibration>();
     _hpVib = vibrator.gameObject.GetComponent<HpScriptVibration>();
     _meleeVib = vibrator.gameObject.GetComponent<MeleeAttackVibration>();
     _jumpVib = vibrator.gameObject.GetComponent<PlayerJumpVibration>();
     _shieldVib = vibrator.gameObject.GetComponent<ShieldVibration>();
     _expDetectVib = vibrator.gameObject.GetComponent<ExplosiveObjectDetectorVibrations>();
 }
Exemplo n.º 2
0
    public void OnEnable()
    {
        var vibrator = (PlayerVibrator)target;

        _dartVib      = vibrator.gameObject.GetComponent <DartVibration>();
        _gunVib       = vibrator.gameObject.GetComponent <GunVibration>();
        _hpVib        = vibrator.gameObject.GetComponent <HpScriptVibration>();
        _meleeVib     = vibrator.gameObject.GetComponent <MeleeAttackVibration>();
        _jumpVib      = vibrator.gameObject.GetComponent <PlayerJumpVibration>();
        _shieldVib    = vibrator.gameObject.GetComponent <ShieldVibration>();
        _expDetectVib = vibrator.gameObject.GetComponent <ExplosiveObjectDetectorVibrations>();
    }