//--------------------------------------------------------------------- public void blockStart(int size_x, int size_y) { mSizeX = size_x; mSizeY = size_y; mListStep = new EbAstarStep[mSizeX * mSizeY]; for (int y = 0; y < mSizeY; ++y) { for (int x = 0; x < mSizeX; ++x) { EbAstarStep step = new EbAstarStep(); step.Cost = 0f; step.Pos.x = x; step.Pos.y = y; mListStep[x + y * mSizeX] = step; } } }
//------------------------------------------------------------------------- public override bool isDest(EbAstarStep step) { return (EbAstarStep.Distance(step, Dest) < Diff); }
//------------------------------------------------------------------------- public override bool isDest(EbAstarStep step) { return (Object.ReferenceEquals(step, Dest)); }