Exemple #1
0
        private void SetSliced(BladeInteractableView enemyBase, Vector3 contactPoint, Quaternion orientation)
        {
            if (!enemyBase.IsSlicable)
            {
                return;
            }

            OnSliced.Dispatch(enemyBase, contactPoint, orientation, _currentData.topPos - LastData.topPos);
        }
Exemple #2
0
        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);
                }
            }
        }
Exemple #3
0
 private bool EvalSlice(BladeInteractableView sliceObject)
 {
     return(true);
 }