摘要: JS// Starting in 2 seconds.// a projectile will be launched every 0.3 secondsvar projectile :Rigidbody;InvokeRepeating("LaunchProjectile", 2, 0.3);function LaunchProjectile () {instance = Instantiate(prefab);instance.velocity =Random.insideUnitSphere* 5;}C#using UnityEngine;using System.Co 阅读全文
posted @ 2013-09-05 16:30 马语者 阅读(11304) 评论(0) 推荐(0)