Commit 7bfd0710 authored by 15박보승's avatar 15박보승

Vector2Int 맨해튼 거리 extension 추가

parent 44190dd0
fileFormatVersion: 2
guid: 474265907ab450e4f9441a7c7d59cf8a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class Vector2IntExtensions
{
public static int ManhattanDistance(this Vector2Int a, Vector2Int b)
{
return Mathf.Abs(a.x - b.x) + Mathf.Abs(a.y - b.y);
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: 5363adbaf4d2c0641a9702aabc77f52c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
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