Commit af576cf5 authored by 18신대성's avatar 18신대성 Committed by 18손재민

Pair를 Generic이 아니게 바꿈

parent b4394627
......@@ -2,19 +2,24 @@
using System.Collections.Generic;
using UnityEngine;
public class Pair<L, R>
public class Pair
{
public L l;
public R r;
public float l;
public float r;
public Pair(L _l, R _r)
public Pair(float _l, float _r)
{
this.l = _l;
this.r = _r;
}
public Pair<R, L> Swap()
public Pair Swap()
{
return new Pair<R, L>(r, l);
return new Pair(r, l);
}
public Pair ApplyMargin(float margin)
{
return new Pair(l - margin, r + margin);
}
}
......@@ -9,6 +9,7 @@ public class Floor : MonoBehaviour
/// </summary>
public Vector2Int mapPos;
public bool isGoalFloor = false;
public IObject objOnFloor = null;
// Start is called before the first frame update
void Start()
......
This diff is collapsed.
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