Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sasherafat-zz/42245af364ceb9a5b85b300c5c856edf to your computer and use it in GitHub Desktop.
Save sasherafat-zz/42245af364ceb9a5b85b300c5c856edf to your computer and use it in GitHub Desktop.
add variable
using UnityEngine;
using System.Collections;
public class SpawnFood : MonoBehaviour {
// Food Prefab
public GameObject foodPrefab;
// Borders
public Transform borderTop;
public Transform borderBottom;
public Transform borderLeft;
public Transform borderRight;
// Use this for initialization
void Start () {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment