Пример #1
0
    protected void _GenerateOnArea(DONCArea2D area)
    {
        var build = this._GetBuild();

        build.Show();

        var pos = area.GetRandomWorldPosition();

        pos.z = build.transform.position.z;
        build.transform.position = pos;
    }
Пример #2
0
    protected void _GenerateOnArea(DONCArea2D area)
    {
        var grass = this._GetGrass();

        grass.Show();

        var pos = area.GetRandomWorldPosition();

        pos.z = grass.transform.position.z;
        grass.transform.position = pos;
    }