Esempio n. 1
0
 public void ReceiveNorth(int locationId)
 {
     if (!ignoringInput)
     {
         foreach (var instruction in navMesh.NorthConsequences(locationId))
         {
             interpreter.Dispatch(instruction.OpCode, instruction.Operand);
         }
     }
 }
        public void TryNorth(int ignore)
        {
            int locationId = locator.LocationFor(bugId);

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