mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
Improved adding and removal of anim events
This commit is contained in:
parent
f0d46df3d6
commit
8523abf957
276 changed files with 1401 additions and 5422 deletions
49
Assets/Scripts/Math/CurvePoint.cs
Normal file
49
Assets/Scripts/Math/CurvePoint.cs
Normal file
|
@ -0,0 +1,49 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace RimWorldAnimationStudio
|
||||
{
|
||||
public struct CurvePoint
|
||||
{
|
||||
public Vector2 Loc
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.loc;
|
||||
}
|
||||
}
|
||||
|
||||
public float x
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.loc.x;
|
||||
}
|
||||
}
|
||||
|
||||
public float y
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.loc.y;
|
||||
}
|
||||
}
|
||||
|
||||
public CurvePoint(float x, float y)
|
||||
{
|
||||
this.loc = new Vector2(x, y);
|
||||
}
|
||||
|
||||
public CurvePoint(Vector2 loc)
|
||||
{
|
||||
this.loc = loc;
|
||||
}
|
||||
|
||||
public static implicit operator Vector2(CurvePoint pt)
|
||||
{
|
||||
return pt.loc;
|
||||
}
|
||||
|
||||
private Vector2 loc;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue