Beispiel #1
0
        void AddGate(int startCycle, int endCycle, List <CellContentGenericConnection> gates, Vector3 startPos, Vector3 endPos)
        {
            for (int cycle = startCycle; cycle < endCycle; cycle++)
            {
                if (gates[cycle].from.passability == gates[cycle].connection.passability)
                {
                    continue;
                }

                Vector3 ccInt;
                SomeMath.LineIntersectXZ(gates[cycle].leftV3, gates[cycle].rightV3, startPos, endPos, out ccInt);

                AddMove(ccInt, gates[cycle].from);
            }
        }