Ejemplo n.º 1
0
 public void ReceiveSouth(int locationId)
 {
     if (!ignoringInput)
     {
         foreach (var instruction in navMesh.SouthConsequences(locationId))
         {
             interpreter.Dispatch(instruction.OpCode, instruction.Operand);
         }
     }
 }
Ejemplo n.º 2
0
        public void TrySouth(int ignore)
        {
            int locationId = locator.LocationFor(bugId);

            foreach (var consequence in navMesh.SouthConsequences(locationId))
            {
                if (consequence.OpCode == Instructions.OpCodes.MoveTo)
                {
                    mover.MoveTo(bugId, consequence.Operand);
                }
            }
        }