Ich kündige!
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user