diff --git a/Assets/scripts/coa4u/ActionsBase/Action.cs b/Assets/scripts/coa4u/ActionsBase/Action.cs index 47adcff..6bed2de 100644 --- a/Assets/scripts/coa4u/ActionsBase/Action.cs +++ b/Assets/scripts/coa4u/ActionsBase/Action.cs @@ -4,18 +4,6 @@ using UnityEngine; namespace coa4u { - public enum Axises - { - none, - x, - y, - z, - xy, - xz, - yz, - xyz - } - /// /// Basic action class for subclassing. To inherit interval actions, consider using the ActionInterval as the base class. /// diff --git a/Assets/scripts/coa4u/ActionsInstant/ActionSetDirection.cs b/Assets/scripts/coa4u/ActionsInstant/ActionSetDirection.cs index 814f8f3..b295b06 100644 --- a/Assets/scripts/coa4u/ActionsInstant/ActionSetDirection.cs +++ b/Assets/scripts/coa4u/ActionsInstant/ActionSetDirection.cs @@ -28,6 +28,7 @@ namespace coa4u : base() { other = targetActor; + value = targetActor.transformCached.position; } public override ActionInstant Clone() @@ -40,7 +41,7 @@ namespace coa4u base.Start(); if (other != null) { - value = other.transform.position; + value = other.transformCached.position; } if (locks != Axises.none) { diff --git a/Assets/scripts/coa4u/CoreClasses/Axises.cs b/Assets/scripts/coa4u/CoreClasses/Axises.cs new file mode 100644 index 0000000..85a6789 --- /dev/null +++ b/Assets/scripts/coa4u/CoreClasses/Axises.cs @@ -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 + } +}