Remove unused code; decrease damage blinking time
This commit is contained in:
parent
1af60ee80c
commit
2028707691
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -4,9 +4,6 @@ using UnityEngine;
|
||||
|
||||
public class PowerUps : MonoBehaviour
|
||||
{
|
||||
public GameObject gardenCheese;
|
||||
public SpriteRenderer mouseRenderer;
|
||||
|
||||
public bool mouseIsGardener;
|
||||
|
||||
public void OnTriggerEnter2D(Collider2D collision)
|
||||
|
Loading…
x
Reference in New Issue
Block a user