Typo fixes

This commit is contained in:
2022-02-21 19:09:59 +03:00
parent 51578e4130
commit 8c5bd12294
5 changed files with 34 additions and 50 deletions

View File

@@ -2,11 +2,11 @@ using UnityEngine;
namespace Movement
{
public class CollissionChecker : MonoBehaviour
public class CollisionChecker : MonoBehaviour
{
private Collider2D[] nonAllocColliderArray = new Collider2D[5];
public LayerMask LayerMask = ~((1 << 6) | (1 << 7)); // Everything except the "Player" and "Enemy" layer
public LayerMask LayerMask { get; set; } = ~((1 << 6) | (1 << 7)); // Everything except the "Player" and "Enemy" layer
public bool IsCollided => Physics2D.OverlapBoxNonAlloc(transform.position, transform.localScale, 0, nonAllocColliderArray, LayerMask) != 0;
public void OnDrawGizmosSelected()

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 02e036b6321fff34cbd154fd665a8b23
guid: 7000c8c0eb91b2d4cb9a0e3ee1b609a7
MonoImporter:
externalObjects: {}
serializedVersion: 2