Skip to content
Snippets Groups Projects
Verified Commit 0a2123bc authored by Adrian Paschkowski's avatar Adrian Paschkowski :thinking:
Browse files

Merge branch 'master' of git.noc.ruhr-uni-bochum.de:paschaxj/spieleentwicklung

parents 8f0c892b f5ef8042
No related branches found
No related tags found
No related merge requests found
Showing
with 1374 additions and 6 deletions
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &5293325330462531168
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 2179160593037541037, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Text
value: Armor
objectReference: {fileID: 0}
- target: {fileID: 6907991330419898657, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Name
value: Multiplier Armor
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_SizeDelta.x
value: 400
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_SizeDelta.y
value: 40
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchoredPosition.x
value: 269
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchoredPosition.y
value: -267
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8085253470480072785, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Name
value: Armor Multiplier
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
fileFormatVersion: 2
guid: dfaed5a1dcf612048887f18bdcfe2a37
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &8956739122482933650
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 6907991330419898657, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Name
value: Multiplier Damage
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_SizeDelta.x
value: 400
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_SizeDelta.y
value: 40
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchoredPosition.x
value: 269
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchoredPosition.y
value: -267
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8085253470480072785, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Name
value: Damage Multiplier
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
fileFormatVersion: 2
guid: ade70dc240b8fcc4d9fc5c4046a516f5
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &5394091761534063844
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 2179160593037541037, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Text
value: Health
objectReference: {fileID: 0}
- target: {fileID: 6907991330419898657, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Name
value: Multiplier Health
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_SizeDelta.x
value: 400
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_SizeDelta.y
value: 40
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchoredPosition.x
value: 269
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchoredPosition.y
value: -267
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8085253470480072785, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Name
value: Health Multiplier
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
fileFormatVersion: 2
guid: 237b49ab7ab1c7c4c8fba9e65c95b2ea
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1001 &4863289282783148631
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 2179160593037541037, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Text
value: Mana Cost
objectReference: {fileID: 0}
- target: {fileID: 6907991330419898657, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Name
value: Multiplier Mana Cost
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_SizeDelta.x
value: 400
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_SizeDelta.y
value: 40
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchoredPosition.x
value: 269
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_AnchoredPosition.y
value: -267
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7750184147691740877, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8085253470480072785, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
propertyPath: m_Name
value: Mana Cost Multiplier
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 15af7001871d5cc4db085618cec5c1b1, type: 3}
fileFormatVersion: 2
guid: aedf14ee3fc90bb4f8cd8e55f8135f9e
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &6907991330419898657
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5460721310278516571}
- component: {fileID: 6022235521648120558}
- component: {fileID: 3880744897017346475}
m_Layer: 5
m_Name: Multiplier
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &5460721310278516571
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6907991330419898657}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 7750184147691740877}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 150, y: -0}
m_SizeDelta: {x: 100, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6022235521648120558
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6907991330419898657}
m_CullTransparentMesh: 1
--- !u!114 &3880744897017346475
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6907991330419898657}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 30
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 3
m_MaxSize: 50
m_Alignment: 2
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: 1.0
--- !u!1 &8085253470480072785
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7750184147691740877}
m_Layer: 5
m_Name: Multiplier Prefab
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7750184147691740877
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8085253470480072785}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 5460721310278516571}
- {fileID: 4085787528196745472}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 269, y: -267}
m_SizeDelta: {x: 400, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &8340790294419294240
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4085787528196745472}
- component: {fileID: 8455506067998837050}
- component: {fileID: 2179160593037541037}
m_Layer: 5
m_Name: Skill
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4085787528196745472
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8340790294419294240}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 7750184147691740877}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -49, y: 0}
m_SizeDelta: {x: 300, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8455506067998837050
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8340790294419294240}
m_CullTransparentMesh: 1
--- !u!114 &2179160593037541037
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8340790294419294240}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 30
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 3
m_MaxSize: 50
m_Alignment: 0
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Damage
fileFormatVersion: 2
guid: 15af7001871d5cc4db085618cec5c1b1
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -401,7 +401,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1381373968067528557, guid: 63cbedde58198bc489f5906809647d41, type: 3}
propertyPath: m_LocalPosition.x
value: 172.7
value: 186
objectReference: {fileID: 0}
- target: {fileID: 1381373968067528557, guid: 63cbedde58198bc489f5906809647d41, type: 3}
propertyPath: m_LocalPosition.y
......
This diff is collapsed.
......@@ -114,6 +114,11 @@ public class StatsManager : MonoBehaviour
enemyStats.armorMultiplier = upgrades[UpgradeTypes.ENEMY_ARMOR].GetTotalEffectMultiplier();
}
public float GetTotalEffectMultiplier(UpgradeTypes type)
{
return upgrades[type].GetTotalEffectMultiplier();
}
void Awake()
{
if (instance == null)
......
......@@ -7,22 +7,38 @@ using UnityEngine.UI;
public class UpgradeController : MonoBehaviour
{
[SerializeField] Button manaButton;
[Header("Price Texts")]
[SerializeField] Text healthText, damageText, armorText, manaText;
[Header("Multiplier Texts")]
[SerializeField] Text healthMultiplierText, damageMultiplierText, armorMultiplierText, manaMultiplierText;
Dictionary<UpgradeTypes,Text> upgradeTexts = new Dictionary<UpgradeTypes,Text>();
Dictionary<UpgradeTypes, Text> multiplierTexts = new Dictionary<UpgradeTypes, Text>();
StatsManager statsManager;
private void Awake()
{
statsManager = FindObjectOfType<StatsManager>();
//initalise upgrade Texts
upgradeTexts.Add(UpgradeTypes.ENEMY_HEALTH, healthText);
upgradeTexts.Add(UpgradeTypes.ENEMY_DAMAGE, damageText);
upgradeTexts.Add(UpgradeTypes.ENEMY_ARMOR, armorText);
upgradeTexts.Add(UpgradeTypes.MANA_COST, manaText);
UpdateAllCosts();
foreach ( KeyValuePair<UpgradeTypes, Text> upgradeText in upgradeTexts)
//initalize Multiplier
multiplierTexts.Add(UpgradeTypes.ENEMY_HEALTH,healthMultiplierText);
multiplierTexts.Add(UpgradeTypes.ENEMY_DAMAGE, damageMultiplierText);
multiplierTexts.Add(UpgradeTypes.ENEMY_ARMOR, armorMultiplierText);
multiplierTexts.Add(UpgradeTypes.MANA_COST, manaMultiplierText);
foreach (KeyValuePair<UpgradeTypes,Text> multiplierText in multiplierTexts)
{
upgradeText.Value.text = statsManager.GetNextUpgradeCost(upgradeText.Key).ToString();
multiplierText.Value.text = statsManager.GetTotalEffectMultiplier(multiplierText.Key).ToString();
}
}
......@@ -50,7 +66,31 @@ public class UpgradeController : MonoBehaviour
if (statsManager.BuyUpgrade(upgradeType))
{
upgradeTexts[upgradeType].text = statsManager.GetNextUpgradeCost(upgradeType).ToString();
multiplierTexts[upgradeType].text = statsManager.GetTotalEffectMultiplier(upgradeType).ToString();
if (upgradeType == UpgradeTypes.MANA_COST)
{
UpdateAllCosts();
DeactivateMana();
}
}
}
private void UpdateAllCosts()
{
foreach (KeyValuePair<UpgradeTypes, Text> upgradeText in upgradeTexts)
{
upgradeText.Value.text = statsManager.GetNextUpgradeCost(upgradeText.Key).ToString();
}
}
private void DeactivateMana()
{
if (statsManager.GetTotalEffectMultiplier(UpgradeTypes.MANA_COST) <= 0.1)
{
manaButton.interactable = false;
multiplierTexts[UpgradeTypes.MANA_COST].text = "0.1";
upgradeTexts[UpgradeTypes.MANA_COST].text = "";
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment