/**
* Copyright(c) Live2D Inc. All rights reserved.
*
* Use of this source code is governed by the Live2D Open Software license
* that can be found at https://www.live2d.com/eula/live2d-open-software-license-agreement_en.html.
*/
using UnityEngine;
namespace Live2D.Cubism.Framework.LookAt
{
///
/// Straight-forward .
///
public class CubismLookTargetBehaviour : MonoBehaviour, ICubismLookTarget
{
#region Implementation of ICubismLookTarget
///
/// Gets the position of the target.
///
/// The position of the target in world space.
Vector3 ICubismLookTarget.GetPosition()
{
return transform.position;
}
///
/// Gets whether the target is active.
///
/// if the target is active; otherwise.
bool ICubismLookTarget.IsActive()
{
return isActiveAndEnabled;
}
#endregion
}
}