예제 #1
0
        private void ApplyHitBox()
        {
            LZFighterFrame  frame = GetFrame();
            HitboxComponent hc    = fighter.gameObject.GetComponent <HitboxComponent>();

            if (hc == null)
            {
                Debug.LogWarning(fighter.name + ": No hitbox component found");
                return;
            }
            hc.SetDefense(frame.hitboxes.FindAll((h) => h._type == FightingGame.HitBox.Type.Body));
            hc.SetAttack(frame.hitboxes.FindAll((h) => h._type == FightingGame.HitBox.Type.Attack));
        }