Compare commits
No commits in common. "feb82edcd112ee3c73b9136e12f60cdb96aa78e6" and "b378c4e834eb1123e658ea95d816cb7a8b86dbdd" have entirely different histories.
feb82edcd1
...
b378c4e834
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 73951a4b66414d24999d439134425a40
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -1058,12 +1058,6 @@ PrefabInstance:
|
||||||
- targetCorrespondingSourceObject: {fileID: 6540681369557983152, guid: d77999c19b7f3294599d4029e5b08ace, type: 3}
|
- targetCorrespondingSourceObject: {fileID: 6540681369557983152, guid: d77999c19b7f3294599d4029e5b08ace, type: 3}
|
||||||
insertIndex: -1
|
insertIndex: -1
|
||||||
addedObject: {fileID: 1961302932}
|
addedObject: {fileID: 1961302932}
|
||||||
- targetCorrespondingSourceObject: {fileID: 6540681369557983152, guid: d77999c19b7f3294599d4029e5b08ace, type: 3}
|
|
||||||
insertIndex: -1
|
|
||||||
addedObject: {fileID: 1961302935}
|
|
||||||
- targetCorrespondingSourceObject: {fileID: 6540681369557983152, guid: d77999c19b7f3294599d4029e5b08ace, type: 3}
|
|
||||||
insertIndex: -1
|
|
||||||
addedObject: {fileID: 1961302934}
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: d77999c19b7f3294599d4029e5b08ace, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: d77999c19b7f3294599d4029e5b08ace, type: 3}
|
||||||
--- !u!4 &30470408 stripped
|
--- !u!4 &30470408 stripped
|
||||||
Transform:
|
Transform:
|
||||||
|
@ -16452,12 +16446,6 @@ PrefabInstance:
|
||||||
- targetCorrespondingSourceObject: {fileID: 6839065564630337043, guid: 950f64c9c1d51e14b84b4e4d4a7b775a, type: 3}
|
- targetCorrespondingSourceObject: {fileID: 6839065564630337043, guid: 950f64c9c1d51e14b84b4e4d4a7b775a, type: 3}
|
||||||
insertIndex: -1
|
insertIndex: -1
|
||||||
addedObject: {fileID: 1295157951}
|
addedObject: {fileID: 1295157951}
|
||||||
- targetCorrespondingSourceObject: {fileID: 6839065564630337043, guid: 950f64c9c1d51e14b84b4e4d4a7b775a, type: 3}
|
|
||||||
insertIndex: -1
|
|
||||||
addedObject: {fileID: 1295157954}
|
|
||||||
- targetCorrespondingSourceObject: {fileID: 6839065564630337043, guid: 950f64c9c1d51e14b84b4e4d4a7b775a, type: 3}
|
|
||||||
insertIndex: -1
|
|
||||||
addedObject: {fileID: 1295157953}
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 950f64c9c1d51e14b84b4e4d4a7b775a, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 950f64c9c1d51e14b84b4e4d4a7b775a, type: 3}
|
||||||
--- !u!4 &523081034 stripped
|
--- !u!4 &523081034 stripped
|
||||||
Transform:
|
Transform:
|
||||||
|
@ -33248,14 +33236,6 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8850766705489312849, guid: 09f4bc67b20a96d47a944bffc3be651a, type: 3}
|
|
||||||
propertyPath: UsesLeft
|
|
||||||
value: 8
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 8850766705489312849, guid: 09f4bc67b20a96d47a944bffc3be651a, type: 3}
|
|
||||||
propertyPath: _itemType
|
|
||||||
value: 2
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_RemovedGameObjects: []
|
m_RemovedGameObjects: []
|
||||||
m_AddedGameObjects: []
|
m_AddedGameObjects: []
|
||||||
|
@ -40508,7 +40488,6 @@ MonoBehaviour:
|
||||||
_hungerNeed: {fileID: 0}
|
_hungerNeed: {fileID: 0}
|
||||||
_wantedFood: 0
|
_wantedFood: 0
|
||||||
_toiletNeed: {fileID: 0}
|
_toiletNeed: {fileID: 0}
|
||||||
_maxPrivateContextBufferSize: 2
|
|
||||||
_talkTimer: 0
|
_talkTimer: 0
|
||||||
--- !u!82 &1295157950
|
--- !u!82 &1295157950
|
||||||
AudioSource:
|
AudioSource:
|
||||||
|
@ -40623,47 +40602,8 @@ MonoBehaviour:
|
||||||
speakingSpeed: 1.1
|
speakingSpeed: 1.1
|
||||||
playSound: 0
|
playSound: 0
|
||||||
generate: 0
|
generate: 0
|
||||||
newVoice: 0
|
newVoiceAndGenerate: 0
|
||||||
Voice:
|
Voice:
|
||||||
--- !u!114 &1295157953
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1295157946}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 8c62dfbaefa34afca6b4a8378b9c9083, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
_outline: {fileID: 1502578688}
|
|
||||||
_selectedColor: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
_highlightColor: {r: 1, g: 0.92156863, b: 0.015686275, a: 1}
|
|
||||||
_developer: {fileID: 1295157948}
|
|
||||||
--- !u!136 &1295157954
|
|
||||||
CapsuleCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1295157946}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Radius: 0.3
|
|
||||||
m_Height: 1
|
|
||||||
m_Direction: 1
|
|
||||||
m_Center: {x: 0, y: 0.82, z: 0}
|
|
||||||
--- !u!4 &1298233948 stripped
|
--- !u!4 &1298233948 stripped
|
||||||
Transform:
|
Transform:
|
||||||
m_CorrespondingSourceObject: {fileID: 5737504958030667471, guid: 7c7f0805c6bdc4f41bd65ec128f6b658, type: 3}
|
m_CorrespondingSourceObject: {fileID: 5737504958030667471, guid: 7c7f0805c6bdc4f41bd65ec128f6b658, type: 3}
|
||||||
|
@ -46433,7 +46373,6 @@ MonoBehaviour:
|
||||||
_hungerNeed: {fileID: 0}
|
_hungerNeed: {fileID: 0}
|
||||||
_wantedFood: 0
|
_wantedFood: 0
|
||||||
_toiletNeed: {fileID: 0}
|
_toiletNeed: {fileID: 0}
|
||||||
_maxPrivateContextBufferSize: 2
|
|
||||||
_talkTimer: 0
|
_talkTimer: 0
|
||||||
--- !u!114 &1502578688
|
--- !u!114 &1502578688
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
|
@ -46600,6 +46539,11 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: f7e417f330c4dd845a8f3dc744dff25a, type: 3}
|
m_Script: {fileID: 11500000, guid: f7e417f330c4dd845a8f3dc744dff25a, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
Needs:
|
||||||
|
- {fileID: 2907046783514947559, guid: 92b71cfc6a2687d44b165ead746233f0, type: 3}
|
||||||
|
- {fileID: 3355435593704932208, guid: b31fb59d198e53b459943bf898293618, type: 3}
|
||||||
|
- {fileID: 7697340910557049827, guid: 5d809e3a343d45f4185615db92384dc7, type: 3}
|
||||||
|
- {fileID: 2405502523364773131, guid: b396df2098c22e1488c2c2769c6ddcd6, type: 3}
|
||||||
--- !u!114 &1502578696
|
--- !u!114 &1502578696
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -46617,7 +46561,7 @@ MonoBehaviour:
|
||||||
speakingSpeed: 1.1
|
speakingSpeed: 1.1
|
||||||
playSound: 0
|
playSound: 0
|
||||||
generate: 0
|
generate: 0
|
||||||
newVoice: 0
|
newVoiceAndGenerate: 0
|
||||||
Voice:
|
Voice:
|
||||||
--- !u!1001 &1502597417
|
--- !u!1001 &1502597417
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
|
@ -60165,7 +60109,7 @@ MonoBehaviour:
|
||||||
speakingSpeed: 1.1
|
speakingSpeed: 1.1
|
||||||
playSound: 0
|
playSound: 0
|
||||||
generate: 0
|
generate: 0
|
||||||
newVoice: 0
|
newVoiceAndGenerate: 0
|
||||||
Voice:
|
Voice:
|
||||||
--- !u!82 &1891423493
|
--- !u!82 &1891423493
|
||||||
AudioSource:
|
AudioSource:
|
||||||
|
@ -62372,7 +62316,6 @@ MonoBehaviour:
|
||||||
_hungerNeed: {fileID: 0}
|
_hungerNeed: {fileID: 0}
|
||||||
_wantedFood: 0
|
_wantedFood: 0
|
||||||
_toiletNeed: {fileID: 0}
|
_toiletNeed: {fileID: 0}
|
||||||
_maxPrivateContextBufferSize: 2
|
|
||||||
_talkTimer: 0
|
_talkTimer: 0
|
||||||
--- !u!82 &1961302931
|
--- !u!82 &1961302931
|
||||||
AudioSource:
|
AudioSource:
|
||||||
|
@ -62487,47 +62430,8 @@ MonoBehaviour:
|
||||||
speakingSpeed: 1.1
|
speakingSpeed: 1.1
|
||||||
playSound: 0
|
playSound: 0
|
||||||
generate: 0
|
generate: 0
|
||||||
newVoice: 0
|
newVoiceAndGenerate: 0
|
||||||
Voice:
|
Voice:
|
||||||
--- !u!136 &1961302934
|
|
||||||
CapsuleCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1961302927}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Radius: 0.3
|
|
||||||
m_Height: 1
|
|
||||||
m_Direction: 1
|
|
||||||
m_Center: {x: 0, y: 0.82, z: 0}
|
|
||||||
--- !u!114 &1961302935
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1961302927}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 8c62dfbaefa34afca6b4a8378b9c9083, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
_outline: {fileID: 1502578688}
|
|
||||||
_selectedColor: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
_highlightColor: {r: 1, g: 0.92156863, b: 0.015686275, a: 1}
|
|
||||||
_developer: {fileID: 1961302929}
|
|
||||||
--- !u!1 &1961564159
|
--- !u!1 &1961564159
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -66381,12 +66285,6 @@ PrefabInstance:
|
||||||
- targetCorrespondingSourceObject: {fileID: 360020996318003118, guid: c161c997c07308740af96a685231f764, type: 3}
|
- targetCorrespondingSourceObject: {fileID: 360020996318003118, guid: c161c997c07308740af96a685231f764, type: 3}
|
||||||
insertIndex: -1
|
insertIndex: -1
|
||||||
addedObject: {fileID: 2100999003}
|
addedObject: {fileID: 2100999003}
|
||||||
- targetCorrespondingSourceObject: {fileID: 360020996318003118, guid: c161c997c07308740af96a685231f764, type: 3}
|
|
||||||
insertIndex: -1
|
|
||||||
addedObject: {fileID: 2100999006}
|
|
||||||
- targetCorrespondingSourceObject: {fileID: 360020996318003118, guid: c161c997c07308740af96a685231f764, type: 3}
|
|
||||||
insertIndex: -1
|
|
||||||
addedObject: {fileID: 2100999005}
|
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: c161c997c07308740af96a685231f764, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: c161c997c07308740af96a685231f764, type: 3}
|
||||||
--- !u!4 &2100998998 stripped
|
--- !u!4 &2100998998 stripped
|
||||||
Transform:
|
Transform:
|
||||||
|
@ -66431,7 +66329,6 @@ MonoBehaviour:
|
||||||
_hungerNeed: {fileID: 0}
|
_hungerNeed: {fileID: 0}
|
||||||
_wantedFood: 0
|
_wantedFood: 0
|
||||||
_toiletNeed: {fileID: 0}
|
_toiletNeed: {fileID: 0}
|
||||||
_maxPrivateContextBufferSize: 2
|
|
||||||
_talkTimer: 0
|
_talkTimer: 0
|
||||||
--- !u!82 &2100999002
|
--- !u!82 &2100999002
|
||||||
AudioSource:
|
AudioSource:
|
||||||
|
@ -66546,47 +66443,8 @@ MonoBehaviour:
|
||||||
speakingSpeed: 1.1
|
speakingSpeed: 1.1
|
||||||
playSound: 0
|
playSound: 0
|
||||||
generate: 0
|
generate: 0
|
||||||
newVoice: 0
|
newVoiceAndGenerate: 0
|
||||||
Voice:
|
Voice:
|
||||||
--- !u!114 &2100999005
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 640532114}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 8c62dfbaefa34afca6b4a8378b9c9083, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
_outline: {fileID: 1502578688}
|
|
||||||
_selectedColor: {r: 1, g: 1, b: 1, a: 1}
|
|
||||||
_highlightColor: {r: 1, g: 0.92156863, b: 0.015686275, a: 1}
|
|
||||||
_developer: {fileID: 2100999000}
|
|
||||||
--- !u!136 &2100999006
|
|
||||||
CapsuleCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 640532114}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Radius: 0.3
|
|
||||||
m_Height: 1
|
|
||||||
m_Direction: 1
|
|
||||||
m_Center: {x: 0, y: 0.82, z: 0}
|
|
||||||
--- !u!1 &2101876026
|
--- !u!1 &2101876026
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -85313,14 +85171,6 @@ PrefabInstance:
|
||||||
propertyPath: m_LocalEulerAnglesHint.z
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
value: 0
|
value: 0
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 8850766705489312849, guid: 09f4bc67b20a96d47a944bffc3be651a, type: 3}
|
|
||||||
propertyPath: UsesLeft
|
|
||||||
value: 8
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 8850766705489312849, guid: 09f4bc67b20a96d47a944bffc3be651a, type: 3}
|
|
||||||
propertyPath: _itemType
|
|
||||||
value: 2
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
m_RemovedComponents: []
|
||||||
m_RemovedGameObjects: []
|
m_RemovedGameObjects: []
|
||||||
m_AddedGameObjects: []
|
m_AddedGameObjects: []
|
||||||
|
|
|
@ -2,7 +2,6 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Data;
|
using Data;
|
||||||
using Interaction;
|
using Interaction;
|
||||||
using TMPro.Examples;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Events;
|
using UnityEngine.Events;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
|
@ -183,32 +182,11 @@ public class Character : MonoBehaviour
|
||||||
{
|
{
|
||||||
Debug.Log($"Gebe {_carriedInteractible.Name} an {developer.Name}");
|
Debug.Log($"Gebe {_carriedInteractible.Name} an {developer.Name}");
|
||||||
|
|
||||||
PickupInteractible item = _carriedInteractible;
|
Interactible item = _carriedInteractible;
|
||||||
|
|
||||||
if (item == null)
|
PickupItem(null);
|
||||||
return;
|
|
||||||
|
|
||||||
switch (item.ItemType)
|
Destroy(item.gameObject);
|
||||||
{
|
|
||||||
case ItemType.Coffee:
|
|
||||||
developer.GiveDrink(0.4, WantedConsumable.Drink);
|
|
||||||
break;
|
|
||||||
case ItemType.Mate:
|
|
||||||
developer.GiveDrink(0.4, WantedConsumable.Mate);
|
|
||||||
break;
|
|
||||||
case ItemType.Pizza:
|
|
||||||
developer.GiveFood(0.25, WantedConsumable.Pizza);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
item.UsesLeft--;
|
|
||||||
|
|
||||||
if (item.UsesLeft <= 0)
|
|
||||||
{
|
|
||||||
PickupItem(null);
|
|
||||||
|
|
||||||
Destroy(item.gameObject);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SayItsImpossible()
|
public void SayItsImpossible()
|
||||||
|
|
|
@ -2,13 +2,6 @@
|
||||||
|
|
||||||
namespace Interaction
|
namespace Interaction
|
||||||
{
|
{
|
||||||
public enum ItemType
|
|
||||||
{
|
|
||||||
Mate,
|
|
||||||
Coffee,
|
|
||||||
Pizza
|
|
||||||
}
|
|
||||||
|
|
||||||
public class PickupInteractible : Interactible
|
public class PickupInteractible : Interactible
|
||||||
{
|
{
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
|
@ -17,16 +10,9 @@ namespace Interaction
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
private string _name;
|
private string _name;
|
||||||
|
|
||||||
[SerializeField]
|
|
||||||
private ItemType _itemType;
|
|
||||||
|
|
||||||
public int UsesLeft = 1;
|
|
||||||
|
|
||||||
public GameObject Model => _model;
|
public GameObject Model => _model;
|
||||||
|
|
||||||
public string Name => _name;
|
public string Name => _name;
|
||||||
|
|
||||||
public ItemType ItemType => _itemType;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,2 +0,0 @@
|
||||||
TODO: Zu erwähnende Credits:
|
|
||||||
"Pizza" by Rigsters: https://sketchfab.com/3d-models/pizza-40d50989fec1460f8838b608d999ccd0
|
|
Loading…
Reference in New Issue