Beispiel #1
0
 // Start is called before the first frame update
 void Start()
 {
     for (int i = 0; i < transform.childCount; i++)
     {
         Common_Bullet bulletData = transform.GetChild(i).GetComponent <Common_Bullet>();
         bulletData.shootDegree = angle.z + bulletData.shootDegree + 90;
     }
 }
 // Start is called before the first frame update
 void Start()
 {
     winMenu     = StaticGameData.winMenu;
     pauseSetter = StaticGameData.pasueSetter;
     bulletData  = bullet.GetComponent <Common_Bullet>();
     stageBGM    = GameObject.FindGameObjectWithTag("bgmPlayer/Stage").GetComponent <AudioSource>();
     stageBGM.Stop();
     BossBGM = GameObject.FindGameObjectWithTag("bgmPlayer/Boss").GetComponent <AudioSource>();
 }
    // Start is called before the first frame update
    void Start()
    {
        nebulaFighterHP = GameObject.FindGameObjectWithTag("Player").GetComponent <Common_HP>();
        snipeBulletData = snipeBullet.GetComponent <Common_Bullet>();
        weaponLevel     = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_NebulaWeaponControl>().baseBulletLevel;
        isSnipeActived  = GameObject.FindGameObjectWithTag("Player").GetComponent <Player_NebulaWeaponControl>().isSnipeActived;

        playerSoundManager = GameObject.FindGameObjectWithTag("PlayerSound").GetComponent <SE_PlayerSoundManager>();
    }
Beispiel #4
0
 // Start is called before the first frame update
 void Start()
 {
     bulletData = bullet.GetComponent <Common_Bullet>();
 }
    // Start is called before the first frame update
    void Start()
    {
        turretBulletData = turretBullet.GetComponent <Common_Bullet>();

        playerSoundManager = GameObject.FindGameObjectWithTag("PlayerSound").GetComponent <SE_PlayerSoundManager>();
    }