16 lines
311 B
C#
16 lines
311 B
C#
|
using UnityEngine;
|
||
|
|
||
|
[System.Serializable]
|
||
|
public class Stick
|
||
|
{
|
||
|
public Point A, B;
|
||
|
public float length;
|
||
|
public bool dead;
|
||
|
|
||
|
public Stick(Point pointA, Point pointB)
|
||
|
{
|
||
|
this.A = pointA;
|
||
|
this.B = pointB;
|
||
|
length = Vector2.Distance(pointA.position, pointB.position);
|
||
|
}
|
||
|
}
|