IEnumerator OnBulletShot() { if (shoted == false) { bullet = Instantiate(obstacle, startBullet, Quaternion.Euler(new Vector3(0.0f, 0.0f, 0.0f))) as BulletObstacle; bullet.MirrorSpeed(changeDir); bullet.transform.SetParent(this.transform, true); shoted = true; yield return(new WaitForSeconds(time)); shoted = false; } }
public BulletObstacle GetRateBullet(BulletObstacle rate_info, float rate) { return(this); }