Esempio n. 1
0
    void RegenerateGround(int index)
    {
        int  modulatedIndex_ = index - 1 < 0 ? _instances.Length - 1 : index - 1;
        line lastInstance_   = _instances [modulatedIndex_];

        _instances [index].transform.position = lastInstance_.transform.position + Vector3.right * lastInstance_.GetLength();
    }