void Start () { patrol = GetComponent<Patrol> (); navAgent = GetComponent<NavMeshAgent> (); scout = GetComponent<ScoutMode> (); switchMode (); }
static int LaunchScout(List <UnitTypes> cardType, ScoutMode mode, User Sender, DataTable table) { switch (mode) { case ScoutMode.Coupon: return(Scout.MakePictureOnceCoupon(Sender, cardType, table, false, true)); case ScoutMode.Eleven: return(Scout.MakePictureEleven(Sender, cardType, table)); case ScoutMode.Once: return(Scout.MakePictureOnceCoupon(Sender, cardType, table, false, false)); } return(0); }