Ich kündige!

This commit is contained in:
Simon Lübeß
2024-04-09 02:05:17 +02:00
parent 4ab8603cfb
commit ef40531dc3
36 changed files with 1116998 additions and 58 deletions

View File

@ -58,6 +58,8 @@ public class Character : MonoBehaviour
public bool CarriesItem => _carriedInteractible;
public PickupInteractible CarriedItem => _carriedInteractible;
public GottfriedData Data => _data;
// Start is called before the first frame update
void Start()
@ -264,4 +266,9 @@ public class Character : MonoBehaviour
_canHurt = true;
}
public void PlayStepSound()
{
_audioSource.PlayOneShot(_data.StepSounds.GetRandomElement());
}
}

View File

@ -6,10 +6,11 @@ namespace Data
[CreateAssetMenu(fileName = "GottfriedData", menuName = "DataObjects/GottfriedData", order = 0)]
public class GottfriedData : ScriptableObject
{
[FormerlySerializedAs("Say_Impossible")] public AudioClip[] VoiceSayItsImpossible;
public AudioClip[] VoiceSayItsImpossible;
public AudioClip DrinkMate;
public AudioClip DrinkCoffe;
public AudioClip EatPizza;
public AudioClip Hurt;
public AudioClip[] StepSounds;
}
}

View File

@ -47,7 +47,7 @@ public class Developer : MonoBehaviour
[SerializeField]
private DeveloperStats _baseStats = DeveloperStats.Default;
[SerializeField]
private float _talkRange = 2.0f;
@ -575,4 +575,9 @@ public class Developer : MonoBehaviour
GetComponent<Text2Speech>().Generate(context, shortnessLevel);
}
}
public void PlayStepSound()
{
_audioSource.PlayOneShot(GameManager.Instance.Player.Data.StepSounds.GetRandomElement());
}
}