﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Onward.CustomContent.Assets
{
    public class ObjectiveUplink : Objective
    {
        public override void Validate()
        {
            base.Validate();

            if (DefendingTeamSpawns.Length != 1)
            {
                throw new ContentExceptionWithGameObject(gameObject, "Defenders need exactly one spawn system for this game mode.");
            }
        }

#if UNITY_EDITOR
        private void OnDrawGizmos()
        {
            Objective.DrawUplinkGizmo(transform);
        }
#endif
    }
}