30 lines
851 B (Stored with Git LFS)
C#
30 lines
851 B (Stored with Git LFS)
C#
using UnityEngine;
|
|
|
|
namespace DDD
|
|
{
|
|
public class RestaurantPlayerView : MonoBehaviour
|
|
{
|
|
private Rigidbody _rigidbody;
|
|
private Transform _visualLook;
|
|
private ParticleSystem _dashParticle;
|
|
private SpineController _spineController;
|
|
|
|
private void Awake()
|
|
{
|
|
_rigidbody = GetComponent<Rigidbody>();
|
|
_visualLook = transform.Find("VisualLook");
|
|
}
|
|
|
|
public void SetVelocity(Vector3 velocity) => _rigidbody.linearVelocity = velocity;
|
|
public Vector3 GetLocalScale() => _visualLook.localScale;
|
|
public void SetLocalScale(Vector3 localScale) => _visualLook.localScale = localScale;
|
|
|
|
public void PlayDashParticle()
|
|
{
|
|
if (_dashParticle)
|
|
{
|
|
_dashParticle.Play();
|
|
}
|
|
}
|
|
}
|
|
} |