|
|
@ -1,6 +1,7 @@ |
|
|
|
using System.Collections; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Linq.Expressions; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine.InputSystem; |
|
|
|
|
|
|
@ -26,8 +27,11 @@ public class HerdController : MonoBehaviour |
|
|
|
private List<PlayerController> Herd; |
|
|
|
private Vector2 recievedInput; |
|
|
|
|
|
|
|
public GameStateController GameState; |
|
|
|
|
|
|
|
void Start() |
|
|
|
{ |
|
|
|
GameState = FindObjectOfType<GameStateController>(); |
|
|
|
SpawnHerd(); |
|
|
|
} |
|
|
|
|
|
|
@ -125,6 +129,10 @@ public class HerdController : MonoBehaviour |
|
|
|
Centre.position = centreofMass/CountedHorses; |
|
|
|
Centre.localScale = bound.size * 0.9f; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
GameState.LoseState(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public void RemoveHorse(PlayerController horse) |
|
|
|