NickFowler 4 years ago
parent
commit
a3c296d0ec
31 changed files with 1265 additions and 42 deletions
  1. +30
    -0
      Assets/Input/HerdInput.inputactions
  2. +108
    -2
      Assets/Scenes/CaseyTest.unity
  3. +17
    -12
      Assets/Scenes/SampleScene 1.unity
  4. +3
    -3
      Assets/Scripts/HammerController.cs
  5. +93
    -11
      Assets/Scripts/Input/BallController.cs
  6. +48
    -4
      Assets/Scripts/Input/HerdController.cs
  7. +6
    -3
      Assets/Scripts/Input/PlayerController.cs
  8. +77
    -0
      Assets/WorldAssets/Materials/CastleColours.mat
  9. +8
    -0
      Assets/WorldAssets/Materials/CastleColours.mat.meta
  10. +77
    -0
      Assets/WorldAssets/Materials/HumptyDumpty.mat
  11. +8
    -0
      Assets/WorldAssets/Materials/HumptyDumpty.mat.meta
  12. +3
    -0
      Assets/WorldAssets/Models/HumptyDumpty.fbx
  13. +96
    -0
      Assets/WorldAssets/Models/HumptyDumpty.fbx.meta
  14. +3
    -0
      Assets/WorldAssets/Models/KingsCastle.fbx
  15. +96
    -0
      Assets/WorldAssets/Models/KingsCastle.fbx.meta
  16. +6
    -1
      Assets/WorldAssets/Models/SM_Level_Rev01.fbx.meta
  17. +0
    -3
      Assets/WorldAssets/Models/ShortSledgeHammer.fbx
  18. +3
    -0
      Assets/WorldAssets/Models/SmallSledgeHammer.fbx
  19. +3
    -3
      Assets/WorldAssets/Models/SmallSledgeHammer.fbx.meta
  20. +3
    -0
      Assets/WorldAssets/Models/Tree1.fbx
  21. +101
    -0
      Assets/WorldAssets/Models/Tree1.fbx.meta
  22. +3
    -0
      Assets/WorldAssets/Models/Tree2.fbx
  23. +101
    -0
      Assets/WorldAssets/Models/Tree2.fbx.meta
  24. +83
    -0
      Assets/WorldAssets/Prefabs/HorseBall.prefab
  25. +7
    -0
      Assets/WorldAssets/Prefabs/HorseBall.prefab.meta
  26. +3
    -0
      Assets/WorldAssets/Texture/HumptyFrown.png
  27. +91
    -0
      Assets/WorldAssets/Texture/HumptyFrown.png.meta
  28. +3
    -0
      Assets/WorldAssets/Texture/HumptySmile.png
  29. +91
    -0
      Assets/WorldAssets/Texture/HumptySmile.png.meta
  30. +3
    -0
      Assets/WorldAssets/Texture/gradientsquares_Castle.png
  31. +91
    -0
      Assets/WorldAssets/Texture/gradientsquares_Castle.png.meta

+ 30
- 0
Assets/Input/HerdInput.inputactions View File

@ -12,6 +12,14 @@
"expectedControlType": "Vector2", "expectedControlType": "Vector2",
"processors": "", "processors": "",
"interactions": "" "interactions": ""
},
{
"name": "Sprint",
"type": "Value",
"id": "5ff5a253-6b95-490a-951c-f71399a76bbc",
"expectedControlType": "",
"processors": "",
"interactions": ""
} }
], ],
"bindings": [ "bindings": [
@ -135,6 +143,28 @@
"action": "Movement", "action": "Movement",
"isComposite": false, "isComposite": false,
"isPartOfComposite": false "isPartOfComposite": false
},
{
"name": "",
"id": "10cbf5c8-8c98-4092-aa44-a05f2ee31a17",
"path": "<Keyboard>/space",
"interactions": "",
"processors": "",
"groups": "",
"action": "Sprint",
"isComposite": false,
"isPartOfComposite": false
},
{
"name": "",
"id": "e2708d8c-53ab-4bb3-9344-e8f146416905",
"path": "<Gamepad>/buttonSouth",
"interactions": "",
"processors": "",
"groups": "",
"action": "Sprint",
"isComposite": false,
"isPartOfComposite": false
} }
] ]
} }

+ 108
- 2
Assets/Scenes/CaseyTest.unity View File

@ -259,8 +259,8 @@ Transform:
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 101379897} m_GameObject: {fileID: 101379897}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -131.4, y: -53, z: 13.56534}
m_LocalScale: {x: 1746.2621, y: 37.181408, z: 2115.8079}
m_LocalPosition: {x: -131.4, y: -193, z: -1871}
m_LocalScale: {x: 6079.9604, y: 129.4545, z: 7366.608}
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 6 m_RootOrder: 6
@ -455,9 +455,30 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fbe2851429fe8e8468394372c097ba45, type: 3} m_Script: {fileID: 11500000, guid: fbe2851429fe8e8468394372c097ba45, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
EatHorse: 0
HorseCount: 0 HorseCount: 0
size: 0 size: 0
horsePrefab: {fileID: 0} horsePrefab: {fileID: 0}
herd: {fileID: 0}
Speed: 10
--- !u!114 &680610894 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 8253619032045175704, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
m_PrefabInstance: {fileID: 983308776}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fbe2851429fe8e8468394372c097ba45, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &680610897 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
m_PrefabInstance: {fileID: 983308776}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &695221452 --- !u!1001 &695221452
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1189,6 +1210,85 @@ MonoBehaviour:
target: {fileID: 984142341} target: {fileID: 984142341}
camHeight: 50 camHeight: 50
Clamp: {x: 12, y: 100} Clamp: {x: 12, y: 100}
--- !u!1001 &983308776
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1457452761}
m_Modifications:
- target: {fileID: 5790973319256092316, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_IsKinematic
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175704, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: Speed
value: 10
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175705, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_Name
value: HorseBall
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_LocalPosition.y
value: 100
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_LocalPosition.z
value: 100
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8253619032045175711, guid: d019eaad4f87842448d362a485c2990b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d019eaad4f87842448d362a485c2990b, type: 3}
--- !u!1 &984142341 --- !u!1 &984142341
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1505,7 +1605,9 @@ MonoBehaviour:
SpawnPoint: {fileID: 0} SpawnPoint: {fileID: 0}
WaitTime: 0.15 WaitTime: 0.15
Centre: {fileID: 984142342} Centre: {fileID: 984142342}
Herd: []
GameState: {fileID: 0} GameState: {fileID: 0}
Ball: {fileID: 680610894}
--- !u!4 &1457452761 --- !u!4 &1457452761
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1519,6 +1621,7 @@ Transform:
m_Children: m_Children:
- {fileID: 984142342} - {fileID: 984142342}
- {fileID: 2009130164} - {fileID: 2009130164}
- {fileID: 680610897}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 4 m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -1869,10 +1972,13 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: fbe2851429fe8e8468394372c097ba45, type: 3} m_Script: {fileID: 11500000, guid: fbe2851429fe8e8468394372c097ba45, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
EatHorse: 0
HorseCount: 1000 HorseCount: 1000
size: 10 size: 10
horsePrefab: {fileID: -927199367670048503, guid: 707f698da07e87f4ab470faa7ed70d74, horsePrefab: {fileID: -927199367670048503, guid: 707f698da07e87f4ab470faa7ed70d74,
type: 3} type: 3}
herd: {fileID: 0}
Speed: 10
--- !u!54 &1853754229 --- !u!54 &1853754229
Rigidbody: Rigidbody:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

+ 17
- 12
Assets/Scenes/SampleScene 1.unity View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1 m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0} m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 705507994} m_Sun: {fileID: 705507994}
m_IndirectSpecularColor: {r: 0.44657844, g: 0.49641222, b: 0.57481694, a: 1}
m_IndirectSpecularColor: {r: 0.44657898, g: 0.4964133, b: 0.5748178, a: 1}
m_UseRadianceAmbientProbe: 0 m_UseRadianceAmbientProbe: 0
--- !u!157 &3 --- !u!157 &3
LightmapSettings: LightmapSettings:
@ -476,22 +476,22 @@ PrefabInstance:
- target: {fileID: -6057495791831066277, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -6057495791831066277, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
propertyPath: m_LocalRotation.x propertyPath: m_LocalRotation.x
value: 0.7313702
value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -6057495791831066277, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -6057495791831066277, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
propertyPath: m_LocalRotation.z propertyPath: m_LocalRotation.z
value: -0
value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -6057495791831066277, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -6057495791831066277, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
propertyPath: m_LocalRotation.w propertyPath: m_LocalRotation.w
value: -0.68198067
value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -6057495791831066277, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -6057495791831066277, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
propertyPath: m_LocalEulerAnglesHint.x propertyPath: m_LocalEulerAnglesHint.x
value: 265.997
value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -6057495791831066277, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -6057495791831066277, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
@ -508,10 +508,15 @@ PrefabInstance:
propertyPath: m_LocalPosition.y propertyPath: m_LocalPosition.y
value: 17.33 value: 17.33
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -6057495791831066277, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
value: 77.66
value: 20.8
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
@ -521,27 +526,27 @@ PrefabInstance:
- target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
value: 139.72
value: 153.2
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
propertyPath: m_LocalRotation.x propertyPath: m_LocalRotation.x
value: -0
value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
propertyPath: m_LocalRotation.y propertyPath: m_LocalRotation.y
value: -0.29617012
value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
propertyPath: m_LocalRotation.z propertyPath: m_LocalRotation.z
value: -0
value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
propertyPath: m_LocalRotation.w propertyPath: m_LocalRotation.w
value: -0.9551352
value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
@ -556,7 +561,7 @@ PrefabInstance:
- target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}
propertyPath: m_LocalEulerAnglesHint.y propertyPath: m_LocalEulerAnglesHint.y
value: -325.54498
value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8, - target: {fileID: -4216859302048453862, guid: a9464dd51bb1eef41b97d9dba3c56cf8,
type: 3} type: 3}

+ 3
- 3
Assets/Scripts/HammerController.cs View File

@ -33,8 +33,8 @@ public class HammerController : MonoBehaviour
void FixedUpdate() void FixedUpdate()
{ {
float ratio = (Mathf.Sin(Time.time * Speed) + 1) / 2; float ratio = (Mathf.Sin(Time.time * Speed) + 1) / 2;
transform.forward = Quaternion.AngleAxis(Mathf.Lerp(AngleLimit.x, AngleLimit.y, ratio), transform.parent.InverseTransformDirection(RotationAxis)) * startDir;
Vector3 hitDirection = Quaternion.AngleAxis(Mathf.Lerp(AngleLimit.x, AngleLimit.y, ratio), transform.parent.InverseTransformDirection(RotationAxis)) * transform.parent.InverseTransformDirection(HitDirection) * -(Mathf.Cos(Time.time * Speed));
transform.forward = Quaternion.AngleAxis(Mathf.Lerp(AngleLimit.x, AngleLimit.y, ratio), transform.parent.TransformDirection(RotationAxis)) * startDir;
Vector3 hitDirection = Quaternion.AngleAxis(Mathf.Lerp(AngleLimit.x, AngleLimit.y, ratio), transform.parent.TransformDirection(RotationAxis)) * transform.parent.TransformDirection(HitDirection) * -(Mathf.Cos(Time.time * Speed));
Debug.DrawRay(transform.position, hitDirection * Force, Color.green); Debug.DrawRay(transform.position, hitDirection * Force, Color.green);
} }
@ -46,7 +46,7 @@ public class HammerController : MonoBehaviour
if (horse != null) if (horse != null)
{ {
float ratio = (Mathf.Sin(Time.time * Speed) + 1) / 2; float ratio = (Mathf.Sin(Time.time * Speed) + 1) / 2;
Vector3 hitDirection = Quaternion.AngleAxis(Mathf.Lerp(AngleLimit.x, AngleLimit.y, ratio), transform.parent.InverseTransformDirection(RotationAxis)) * transform.parent.InverseTransformDirection(HitDirection) * -(Mathf.Cos(Time.time * Speed));
Vector3 hitDirection = Quaternion.AngleAxis(Mathf.Lerp(AngleLimit.x, AngleLimit.y, ratio), transform.parent.TransformDirection(RotationAxis)) * transform.parent.TransformDirection(HitDirection) * -(Mathf.Cos(Time.time * Speed));
horse.AddForce((hitDirection.normalized + Vector3.up) * Force); horse.AddForce((hitDirection.normalized + Vector3.up) * Force);
Debug.Log("Hitting horse"); Debug.Log("Hitting horse");

+ 93
- 11
Assets/Scripts/Input/BallController.cs View File

@ -5,33 +5,115 @@ using UnityEngine;
public class BallController : MonoBehaviour public class BallController : MonoBehaviour
{ {
public bool EatHorse;
public int HorseCount; public int HorseCount;
public float size;
public float size = 1;
public GameObject horsePrefab; public GameObject horsePrefab;
// Start is called before the first frame update
void Start()
public HerdController herd;
public float Speed = 10;
private List<PlayerController> disabledHorses = new List<PlayerController>();
private Rigidbody rigid;
private Camera cam;
private Vector2 recievdInput;
private SphereCollider collider;
private void Start()
{ {
SpawnHorses();
herd = FindObjectOfType<HerdController>();
rigid = GetComponent<Rigidbody>();
collider = GetComponent<SphereCollider>();
cam = Camera.main;
Debug.Log(herd.Centre.position);
} }
// Update is called once per frame // Update is called once per frame
void Update()
void FixedUpdate()
{ {
if (EatHorse)
{
rigid.isKinematic = false;
collider.enabled = true;
foreach (PlayerController horse in herd.Herd)
{
if (horse.GetComponent<PlayerController>().enabled)
{
horse.AddForce((transform.position - horse.transform.position).normalized * 20);
if (Vector3.Distance(horse.transform.position, transform.position) < size * 2)
AddHorse(horse);
}
}
}
else
{
rigid.isKinematic = true;
collider.enabled = false;
size = 1;
if (disabledHorses.Count != 0)
{
foreach (PlayerController horse in disabledHorses)
{
horse.enabled = true;
horse.cController.enabled = true;
horse.transform.parent = herd.transform;
horse.moveDirection = Vector3.zero;
var vec = horse.transform.eulerAngles;
vec.x = Mathf.Round(vec.x / 90) * 90;
vec.y = Mathf.Round(vec.y / 90) * 90;
vec.z = Mathf.Round(vec.z / 90) * 90;
horse.transform.eulerAngles = vec;
}
disabledHorses.Clear();
}
}
DoMove();
}
public void DoMove()
{
Vector3 direction = cam.transform.rotation * new Vector3(recievdInput.x, 0.0f, recievdInput.y);
rigid.AddForce(direction * Speed * Time.fixedDeltaTime,ForceMode.VelocityChange);
}
public void GetInput(Vector2 input)
{
recievdInput = input;
} }
public void SpawnHorses()
private void AddHorse(PlayerController horse)
{ {
for (int i = 0; i < HorseCount; i++)
size += 0.5f / (size*10);
collider.radius = size;
foreach(Transform child in transform)
{ {
Vector3 position = Random.onUnitSphere * size + transform.position;
Instantiate(horsePrefab, position,Random.rotation , transform);
child.localPosition = child.localPosition.normalized * size;
} }
horse.GetComponent<PlayerController>().enabled = false;
horse.GetComponent<CharacterController>().enabled = false;
Vector3 position = Random.onUnitSphere * size + transform.position;
horse.transform.position = position;
horse.transform.rotation = Random.rotation;
horse.transform.parent = transform;
disabledHorses.Add(horse);
} }
} }

+ 48
- 4
Assets/Scripts/Input/HerdController.cs View File

@ -21,13 +21,15 @@ public class HerdController : MonoBehaviour
private float WaitTime; private float WaitTime;
[SerializeField] [SerializeField]
private Transform Centre;
public Transform Centre;
private float lastTime; private float lastTime;
private List<PlayerController> Herd;
public List<PlayerController> Herd;
private Vector2 recievedInput; private Vector2 recievedInput;
public GameStateController GameState; public GameStateController GameState;
public BallController Ball;
void Start() void Start()
{ {
@ -44,8 +46,50 @@ public class HerdController : MonoBehaviour
Herd.ForEach(p => p.SetMovement(input)); Herd.ForEach(p => p.SetMovement(input));
recievedInput = input; recievedInput = input;
Ball.GetInput(input);
} }
private void OnSprint(InputValue value)
{
int input = (int)value.Get<float>();
Debug.Log("Sprint: " + input);
if (input == 1)
{
Ball.EatHorse = true;
Ball.transform.position = Centre.position;
}
else
{
Ball.EatHorse = false;
}
}
private Vector3 GetCentre()
{
Vector3 centreofMass = Vector3.zero;
int CountedHorses = 0;
foreach (PlayerController horse in Herd)
{
if (horse.isGrounded || Time.time < 5)
{
centreofMass += horse.transform.position;
CountedHorses++;
}
}
if (CountedHorses != 0)
{
return centreofMass / CountedHorses;
}
else
{
return Vector3.one;
}
}
[ContextMenu("Spawn")] [ContextMenu("Spawn")]
private void SpawnHerd() private void SpawnHerd()
@ -126,7 +170,7 @@ public class HerdController : MonoBehaviour
bound.Encapsulate(horse.transform.position); bound.Encapsulate(horse.transform.position);
centreofMass += horse.transform.position; centreofMass += horse.transform.position;
CountedHorses++; CountedHorses++;
} }
} }
if (CountedHorses != 0) if (CountedHorses != 0)
@ -137,7 +181,7 @@ public class HerdController : MonoBehaviour
} }
else else
{ {
GameState.LoseState();
GameState.LoseState();
} }
} }

+ 6
- 3
Assets/Scripts/Input/PlayerController.cs View File

@ -65,7 +65,7 @@ public class PlayerController : MonoBehaviour
if (!isRagdoll) if (!isRagdoll)
{ {
moveDirection = Vector3.zero; moveDirection = Vector3.zero;
moveDirection += new Vector3(HorseX, 0, HorseZ) * (walkSpeed * (1 + speedMulitplier));
moveDirection += cam.transform.rotation * new Vector3(HorseX, 0, HorseZ) * (walkSpeed * (1 + speedMulitplier));
} }
} }
@ -87,12 +87,15 @@ public class PlayerController : MonoBehaviour
public IEnumerator RandomWait(float wait) public IEnumerator RandomWait(float wait)
{ {
Vector3 input = receivedInput;
Vector3 input = new Vector3(receivedInput.x, 0.0f, receivedInput.y);
yield return new WaitForSeconds(UnityEngine.Random.Range(0, wait / 2)); yield return new WaitForSeconds(UnityEngine.Random.Range(0, wait / 2));
if (cController.isGrounded) if (cController.isGrounded)
{ {
Vector3 rotateDir = new Vector3(90 * Math.Sign(input.y), 0, -90 * Math.Sign(input.x));
Vector3 rotateDir = new Vector3(90 * Math.Sign(input.z),0.0f, -90 * Math.Sign(input.x));
//model.transform.rotation *= Quaternion.AngleAxis(cam.transform.eulerAngles.y, Vector3.up) * Quaternion.Euler(rotateDir);
model.transform.Rotate(rotateDir, Space.World); model.transform.Rotate(rotateDir, Space.World);
} }
} }

+ 77
- 0
Assets/WorldAssets/Materials/CastleColours.mat View File

@ -0,0 +1,77 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: CastleColours
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 8
- 0
Assets/WorldAssets/Materials/CastleColours.mat.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 262eee8e7bac9bb43ab9ff50690e8d12
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

+ 77
- 0
Assets/WorldAssets/Materials/HumptyDumpty.mat View File

@ -0,0 +1,77 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: HumptyDumpty
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 8
- 0
Assets/WorldAssets/Materials/HumptyDumpty.mat.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b949f1ba149601d468aa033982e572ff
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

+ 3
- 0
Assets/WorldAssets/Models/HumptyDumpty.fbx View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9cfe176d20c16455b2c40e86106d3211bda1e4862ce3d0a144e93a45a507fd77
size 203583

+ 96
- 0
Assets/WorldAssets/Models/HumptyDumpty.fbx.meta View File

@ -0,0 +1,96 @@
fileFormatVersion: 2
guid: 92de93f01184e1a4b9c45bbd45f379cc
ModelImporter:
serializedVersion: 19300
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

+ 3
- 0
Assets/WorldAssets/Models/KingsCastle.fbx View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5f58528add94d0b858a12a415cc6c3b812da744c6de878e4da4883e0e34bceb4
size 1241307

+ 96
- 0
Assets/WorldAssets/Models/KingsCastle.fbx.meta View File

@ -0,0 +1,96 @@
fileFormatVersion: 2
guid: d132c8048a5db7a46a7bf8ce05ac7643
ModelImporter:
serializedVersion: 19300
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

+ 6
- 1
Assets/WorldAssets/Models/SM_Level_Rev01.fbx.meta View File

@ -3,7 +3,12 @@ guid: 4024801bc7168ca469aad4eac4bc4667
ModelImporter: ModelImporter:
serializedVersion: 19300 serializedVersion: 19300
internalIDToNameTable: [] internalIDToNameTable: []
externalObjects: {}
externalObjects:
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: surfaceShader1
second: {fileID: 2100000, guid: 41dd6c0d44ba4f94ca2ef9c9a117d460, type: 2}
materials: materials:
materialImportMode: 1 materialImportMode: 1
materialName: 0 materialName: 0

+ 0
- 3
Assets/WorldAssets/Models/ShortSledgeHammer.fbx View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d7f6bd8a1ffbf2242585074c1099c9a541de2141b8bba24dcbf61037847564f7
size 388044

+ 3
- 0
Assets/WorldAssets/Models/SmallSledgeHammer.fbx View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2d04e5eb22709093d02a838ca4d2ffa61fca09d4a4cc819323c926872bee9ff9
size 388081

Assets/WorldAssets/Models/ShortSledgeHammer.fbx.meta → Assets/WorldAssets/Models/SmallSledgeHammer.fbx.meta View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: a9464dd51bb1eef41b97d9dba3c56cf8
guid: bcdab00cb9b3d4c478158289f84a0b9a
ModelImporter: ModelImporter:
serializedVersion: 19300 serializedVersion: 19300
internalIDToNameTable: [] internalIDToNameTable: []
@ -39,7 +39,7 @@ ModelImporter:
isReadable: 0 isReadable: 0
meshes: meshes:
lODScreenPercentages: [] lODScreenPercentages: []
globalScale: 35
globalScale: 1
meshCompression: 0 meshCompression: 0
addColliders: 0 addColliders: 0
useSRGBMaterialColor: 1 useSRGBMaterialColor: 1
@ -85,7 +85,7 @@ ModelImporter:
armStretch: 0.05 armStretch: 0.05
legStretch: 0.05 legStretch: 0.05
feetSpacing: 0 feetSpacing: 0
globalScale: 0.35
globalScale: 1
rootMotionBoneName: rootMotionBoneName:
hasTranslationDoF: 0 hasTranslationDoF: 0
hasExtraRoot: 0 hasExtraRoot: 0

+ 3
- 0
Assets/WorldAssets/Models/Tree1.fbx View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0dc65d216a6723e74946853fa89882605d31b7b79ff33adf8c24921f2c438a61
size 278515

+ 101
- 0
Assets/WorldAssets/Models/Tree1.fbx.meta View File

@ -0,0 +1,101 @@
fileFormatVersion: 2
guid: 4163547e129287f4fa90a8c7ae767017
ModelImporter:
serializedVersion: 19300
internalIDToNameTable: []
externalObjects:
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: surfaceShader2
second: {fileID: 2100000, guid: 41dd6c0d44ba4f94ca2ef9c9a117d460, type: 2}
materials:
materialImportMode: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

+ 3
- 0
Assets/WorldAssets/Models/Tree2.fbx View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:99660e9ef97b24d69ac36e5602841ef85e52ba1b2c41bfd2e8c4da0ea5b76984
size 278632

+ 101
- 0
Assets/WorldAssets/Models/Tree2.fbx.meta View File

@ -0,0 +1,101 @@
fileFormatVersion: 2
guid: 5efa3794de547b04988f66fb110ef963
ModelImporter:
serializedVersion: 19300
internalIDToNameTable: []
externalObjects:
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: surfaceShader2
second: {fileID: 2100000, guid: 41dd6c0d44ba4f94ca2ef9c9a117d460, type: 2}
materials:
materialImportMode: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

+ 83
- 0
Assets/WorldAssets/Prefabs/HorseBall.prefab View File

@ -0,0 +1,83 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &8253619032045175705
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8253619032045175711}
- component: {fileID: 8253619032045175704}
- component: {fileID: 5790973319256092316}
- component: {fileID: 6514331592746740632}
m_Layer: 0
m_Name: HorseBall
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &8253619032045175711
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8253619032045175705}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 100, z: 100}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &8253619032045175704
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8253619032045175705}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fbe2851429fe8e8468394372c097ba45, type: 3}
m_Name:
m_EditorClassIdentifier:
EatHorse: 0
HorseCount: 0
size: 1
horsePrefab: {fileID: -927199367670048503, guid: 707f698da07e87f4ab470faa7ed70d74,
type: 3}
herd: {fileID: 0}
Speed: 100
--- !u!54 &5790973319256092316
Rigidbody:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8253619032045175705}
serializedVersion: 2
m_Mass: 1
m_Drag: 0
m_AngularDrag: 0.05
m_UseGravity: 1
m_IsKinematic: 0
m_Interpolate: 0
m_Constraints: 0
m_CollisionDetection: 0
--- !u!135 &6514331592746740632
SphereCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8253619032045175705}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Radius: 0.5
m_Center: {x: 0, y: 0, z: 0}

+ 7
- 0
Assets/WorldAssets/Prefabs/HorseBall.prefab.meta View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d019eaad4f87842448d362a485c2990b
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 3
- 0
Assets/WorldAssets/Texture/HumptyFrown.png View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf229c167b71c9b287e99a8f65efd961b4f76b995430366c822d0f32f42e5312
size 51752

+ 91
- 0
Assets/WorldAssets/Texture/HumptyFrown.png.meta View File

@ -0,0 +1,91 @@
fileFormatVersion: 2
guid: 1506fb5a8fc5cdd4f886bf54b51d0cc0
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

+ 3
- 0
Assets/WorldAssets/Texture/HumptySmile.png View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:09da21cdb5a07eeb1e9fc5bc3b15d4050623b1c26ffa71377cf149e8f4317dfe
size 51565

+ 91
- 0
Assets/WorldAssets/Texture/HumptySmile.png.meta View File

@ -0,0 +1,91 @@
fileFormatVersion: 2
guid: f7b0398960f01fe4cb3a82f9b7409d11
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

+ 3
- 0
Assets/WorldAssets/Texture/gradientsquares_Castle.png View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f77a6801aa64637342f5b683fae4386a30fba57f6f4ebcbb0f4c1b8412a96542
size 106913

+ 91
- 0
Assets/WorldAssets/Texture/gradientsquares_Castle.png.meta View File

@ -0,0 +1,91 @@
fileFormatVersion: 2
guid: e98575de03b42ce46acce506e2e4e92b
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: -1
wrapV: -1
wrapW: -1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
spriteMode: 0
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 0
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Loading…
Cancel
Save