Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Created July 28, 2016 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/416f0646cfeafd168266b2924a43b737 to your computer and use it in GitHub Desktop.
Save tsubaki/416f0646cfeafd168266b2924a43b737 to your computer and use it in GitHub Desktop.
ゲーム開始時にオブジェクトを一つ生成(強制)
using UnityEngine;
public class Spawn
{
[RuntimeInitializeOnLoadMethod()]
static void Init()
{
new GameObject ("sample");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment