Commit 4fe942d7 authored by HavocDeadeye's avatar HavocDeadeye
Browse files

Some changes on KillLemming Script

parent 72c3d349
......@@ -58,7 +58,10 @@ public class GroupController : MonoBehaviour, IKillTarget
{
if (ActiveLemmingIndex + 1 <= PlayableLemmings.Length)
{
ActiveLemming = PlayableLemmings[++ActiveLemmingIndex];
Destroy(ActiveLemming);
ActiveLemming = PlayableLemmings[ActiveLemmingIndex];
ActiveLemmingStatus(false);
}
else
{
......
......@@ -11,12 +11,13 @@ public class KillLemming : MonoBehaviour, IKillTarget
void Start()
{
animator = GetComponent<Animator>();
}
public void Die(GameObject other)
{
animator.SetBool("Life", false);
Debug.Log(groupController);
groupController.RemoveLemmingFromGroup();
Debug.Log("Lemming gekillt");
......
fileFormatVersion: 2
guid: deccfabc79d963e4ebc76c275f4c8f31
guid: 6adcb7332ec1f6341af68d1d86bef62f
folderAsset: yes
DefaultImporter:
externalObjects: {}
......
fileFormatVersion: 2
guid: 3dd50cf3477261d46a80db81c5e8b679
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 6adcb7332ec1f6341af68d1d86bef62f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 5c6a22186a460b746939cfb0817c412e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment