WebTechKitchen; Your Web Technology Kitchen, contact us to create, or maintain your websites and other digital properties.

Basic Unity Scripts

Submitted by barnettech on Sun, 04/08/2018 - 22:54

using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class PlayerController : MonoBehaviour {
public GameObject[] prefabs;

public float speed;
public Vector3 jump;
public Text countText;
public Text winText;

private Rigidbody rb;
private int count;

getting an rss feed in lua

Submitted by barnettech on Sat, 03/31/2018 - 00:54


f=io.popen("curl -s http://www.barnettech.com/rss.xml"); C=f:read"*a"; f:close()

function get(data,name)
return data:match("<"..name..">(.-)")

-- assumes C contains the downloaded contents