private void SetSliced(BladeInteractableView enemyBase, Vector3 contactPoint, Quaternion orientation) { if (!enemyBase.IsSlicable) { return; } OnSliced.Dispatch(enemyBase, contactPoint, orientation, _currentData.topPos - LastData.topPos); }
private void EvalCut(Collider col, Vector3 cutPoint, Quaternion orientation) { BladeInteractableView enemy = col.gameObject.GetComponentInParent <BladeInteractableView>(); if (enemy != null) { if (EvalSlice(enemy)) { SetSliced(enemy, cutPoint, orientation); } } }
private bool EvalSlice(BladeInteractableView sliceObject) { return(true); }