2015-04-01から1ヶ月間の記事一覧
using UnityEngine; using System.Collections; using System; public class enemy : MonoBehaviour { // Use this for initialization void Start () { float dir = Random.range (1, 359); } Random' is an ambiguous reference between `UnityEngine.Rand…
public void OnPush (){ GameObject search = GameObject.Find ("Emanu(Clone)"); bool n = (bool)search; if (n == true) { Destroy (prefab); n = false; return; } GameObject parentObject = GameObject.Find ("Enemy"); GameObject obj = (GameObject)R…