2024-12-04 17:26:27 +08:00

38 lines
955 B
C#

using System.Collections;
using System.Collections.Generic;
using DG.Tweening;
using UnityEngine;
public class Mouster : MonoBehaviour
{
[SerializeField] private Transform lockTra;
public int Attack => attack;
[SerializeField] private int attack;
public int HitPoints => hitPoints;
[SerializeField] private int hitPoints;
public int Strength => strength;
[SerializeField] private int strength;
public int Dxterity => dexterity;
[SerializeField] private int dexterity;
public int CriticalStrike => criticalStrike;
[SerializeField] private int criticalStrike;
private Tween _tween;
public void StartMove(Transform tra)
{
lockTra = tra;
_tween=transform.DOMove(lockTra.position, 10);
_tween.Kill();
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}