This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_shifted_data_array(self): | |
"""Returns the audio audio shifted either left or right | |
using zeros matching the phase shift in a given direction""" | |
# Calculate number of shifts | |
shifts = np.zeros(int(self.__sample_rate * abs(self.__phase_shift))) | |
# self.__sample_rate => 44100 | |
# abs(self.__phase_shift) => et tal mellem 0 og 1.6 | |
# lad os sige at det i dette eksempel er 0.5 | |
# self.__sample_rate * abs(self.__phase_shift) = 44100 * 0.5 = 22050 antal nuller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Portal : MonoBehaviour | |
{ | |
[SerializeField] | |
private string playerTag; | |
[SerializeField] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Arrow.cs */ | |
using UnityEngine; | |
public class Arrow : MonoBehaviour | |
{ | |
[SerializeField] | |
private float damage; | |
[SerializeField] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Movement : MonoBehaviour | |
{ | |
[SerializeField] | |
private float movementSpeed; | |
[SerializeField] | |
private float jumpPower; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Weapon.cs */ | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Weapon : MonoBehaviour | |
{ | |
[SerializeField] | |
private new ParticleSystem particleSystem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* CoinsController.cs */ | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class CoinsController : MonoBehaviour | |
{ | |
[SerializeField] | |
private int numberOfCoins; | |
[SerializeField] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* HealthController.cs */ | |
using System.Collections; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class HealthController : MonoBehaviour | |
{ | |
[SerializeField] | |
private GameObject healthPanel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* WeaponController.cs */ | |
using UnityEngine; | |
public class WeaponController : MonoBehaviour | |
{ | |
[SerializeField] | |
private Weapon weapon; | |
[SerializeField] | |
private string enemyTag; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.AI; | |
public class Movement : MonoBehaviour | |
{ | |
[SerializeField] | |
private Camera camera; | |
private string groundTag = "Ground"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class Movement : MonoBehaviour | |
{ | |
private Rigidbody rigidbody; | |
[SerializeField] | |
private float speed; | |
[SerializeField] |
NewerOlder