Remove unused code; decrease damage blinking time

This commit is contained in:
Elias Fleckenstein 2021-10-30 17:38:33 +02:00
parent 1af60ee80c
commit 2028707691
No known key found for this signature in database
GPG Key ID: 06927A5199D6C9B2
2 changed files with 1 additions and 6 deletions

View File

@ -16,7 +16,7 @@ public class EnemyCollision : MonoBehaviour
EnemyScript eS;
public float flashingTime = 0.3f;
public float flashingTime = 0.1f;
private bool invulnerable = false;
@ -66,8 +66,6 @@ public class EnemyCollision : MonoBehaviour
yield return new WaitForSeconds(flashingTime);
}
Physics2D.IgnoreLayerCollision(7, 8, false);
spriteRenderer.enabled = true;
trailRenderer.enabled = true;
invulnerable = false;
}
}

View File

@ -4,9 +4,6 @@ using UnityEngine;
public class PowerUps : MonoBehaviour
{
public GameObject gardenCheese;
public SpriteRenderer mouseRenderer;
public bool mouseIsGardener;
public void OnTriggerEnter2D(Collider2D collision)