Esempio n. 1
0
    protected MovingObject NewBigObstacle(int sector, float distance, float minLength)
    {
        MovingObject obj = enviroment.GetMinLengthObstacle(minLength);

        if (obj == null)
        {
            throw new System.Exception("Not long enough");
        }
        obj.SetValues(mapValues, sector);
        obj.transform.parent = parent;
        obj.SetDistance(distance);
        obj.Update();
        return(obj);
    }