fgm24/Assets/Scripts/Rope/Stick.cs

16 lines
311 B
C#
Raw Normal View History

2024-02-02 21:03:44 +01:00
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);
}
}