Exemplo n.º 1
0
    public static PointsPopUp Create(Vector3 loc, int pointsValue)
    {
        Transform @object = Instantiate(GameAssets.i.PointsPopup) as Transform;

        @object.position = loc;
        PointsPopUp script = @object.GetComponent <PointsPopUp>();

        script.SetUp(pointsValue);
        return(script);
    }