예제 #1
0
    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;
        }
    }
예제 #2
0
 public BulletObstacle GetRateBullet(BulletObstacle rate_info, float rate)
 {
     return(this);
 }