Ejemplo n.º 1
0
    public void DrawLane(Lane lane)
    {
        GameObject obj = Instantiate(toInstantiateLane, lane.GetPos(), Quaternion.identity);

        obj.GetComponent <SpriteRenderer>().size = new Vector2(Screen.width * 2f, 60f);
        obj.SetActive(true);
        _gameObjects.Add(obj);
    }