Deca-pod.jp

Anything

2015-04-01から1ヶ月間の記事一覧

'○○' is an ambiguous reference between `UnityEngine.Random' and `System.Random'と表示されたら

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…