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>(); }
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>(); }