Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        //rb2d = GetComponent<Rigidbody2D>();
        playerAudio = GetComponent <AudioSource>();
        //reload = GetComponent<AudioSource>();

        ammoScript = ammoSpawn.GetComponent <ammoSpawnController>();
    }
 // Start is called before the first frame update
 void Start()
 {
     // getting the scripts from their relative game objects
     playerScript      = player.GetComponent <playerController>();
     ammoScript        = ammoSpawn.GetComponent <ammoSpawnController>();
     enemySpawnScript  = enemySpawn.GetComponent <SpawnController>();
     healthSpawnScript = healthSpawn.GetComponent <healthSpawnController>();
     //bulletScript = bullet.GetComponent<bulletController>();
 }