You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
510 B
20 lines
510 B
1 month ago
|
using Entitas;
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace CoreGame.Render
|
||
|
{
|
||
|
[Combat]
|
||
|
public class BeAttractedComponent : IComponent, IReset
|
||
|
{
|
||
|
public int attractorEid; // 吸引者
|
||
|
public Vector2 startPos; // 开始位置
|
||
|
public float startScale; // 开始大小
|
||
|
public float targetScale; // 目标大小
|
||
|
public float duration; // fly时间
|
||
|
internal float accTime; // 累计时间
|
||
|
public void Reset()
|
||
|
{
|
||
|
accTime = 0;
|
||
|
}
|
||
|
}
|
||
|
}
|