【3Dゲームエンジン】Unity質問スレッド28 [無断転載禁止]©5ch.net
■ このスレッドは過去ログ倉庫に格納されています
0044名前は開発中のものです。
2017/01/13(金) 02:53:42.04ID:tDrgUvk9using System.Collections;
public class Test2 : MonoBehaviour {
float timer;
public GameObject a;
void Update ()
{
timer += Time.deltaTime;
if (Mathf.Abs(3.05f - timer) < 1.192093E-07 )
{
timer = 0;
Instantiate(a, gameObject.transform.position, Quaternion.identity);
}
}
}
てどうだ
■ このスレッドは過去ログ倉庫に格納されています