Unity prefabをスクリプトから呼び出す方法
// プレハブを取得 GameObject prefab = (GameObject)Resources.Load ("Prefabs/Shot"); // プレハブからインスタンスを生成 Instantiate (prefab, position, Quaternion.identity);
// プレハブを取得 GameObject prefab = (GameObject)Resources.Load ("Prefabs/Shot"); // プレハブからインスタンスを生成 Instantiate (prefab, position, Quaternion.identity);