Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sasherafat-zz/6bb3265e617f0203bb710f5c60be6cb3 to your computer and use it in GitHub Desktop.
Save sasherafat-zz/6bb3265e617f0203bb710f5c60be6cb3 to your computer and use it in GitHub Desktop.
create GameObject in unity project
using UnityEngine;
using System.Collections;
public class SpawnFood : MonoBehaviour {
// Food Prefab
public GameObject foodPrefab;
// Use this for initialization
void Start () {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment