mirror of
https://github.com/evgen-app/steampunk-quest.git
synced 2025-02-12 12:00:33 +03:00
12 lines
308 B
C#
12 lines
308 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
|
||
|
public class geometry : MonoBehaviour
|
||
|
{
|
||
|
public bool intersects(float ax, float ay, float ax1, float ay1, float bx, float by, float bx1, float by1)
|
||
|
{
|
||
|
return (ay < by1 || ay1 > by || ax1 < bx || ax > bx1);
|
||
|
}
|
||
|
}
|