Minor fixes
This commit is contained in:
@@ -4,18 +4,6 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace coa4u
|
namespace coa4u
|
||||||
{
|
{
|
||||||
public enum Axises
|
|
||||||
{
|
|
||||||
none,
|
|
||||||
x,
|
|
||||||
y,
|
|
||||||
z,
|
|
||||||
xy,
|
|
||||||
xz,
|
|
||||||
yz,
|
|
||||||
xyz
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Basic action class for subclassing. To inherit interval actions, consider using the ActionInterval as the base class.
|
/// Basic action class for subclassing. To inherit interval actions, consider using the ActionInterval as the base class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ namespace coa4u
|
|||||||
: base()
|
: base()
|
||||||
{
|
{
|
||||||
other = targetActor;
|
other = targetActor;
|
||||||
|
value = targetActor.transformCached.position;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override ActionInstant Clone()
|
public override ActionInstant Clone()
|
||||||
@@ -40,7 +41,7 @@ namespace coa4u
|
|||||||
base.Start();
|
base.Start();
|
||||||
if (other != null)
|
if (other != null)
|
||||||
{
|
{
|
||||||
value = other.transform.position;
|
value = other.transformCached.position;
|
||||||
}
|
}
|
||||||
if (locks != Axises.none)
|
if (locks != Axises.none)
|
||||||
{
|
{
|
||||||
|
|||||||
18
Assets/scripts/coa4u/CoreClasses/Axises.cs
Normal file
18
Assets/scripts/coa4u/CoreClasses/Axises.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace coa4u
|
||||||
|
{
|
||||||
|
public enum Axises
|
||||||
|
{
|
||||||
|
none,
|
||||||
|
x,
|
||||||
|
y,
|
||||||
|
z,
|
||||||
|
xy,
|
||||||
|
xz,
|
||||||
|
yz,
|
||||||
|
xyz
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user