19 lines
472 B
C#
19 lines
472 B
C#
using UnityEngine;
|
|
|
|
namespace IdleSpectator;
|
|
|
|
public sealed class InterestEvent
|
|
{
|
|
public InterestTier Tier;
|
|
public float Score;
|
|
public Vector3 Position;
|
|
public Actor FollowUnit;
|
|
public string Label;
|
|
public float CreatedAt;
|
|
public string AssetId;
|
|
|
|
public bool HasFollowUnit => FollowUnit != null && FollowUnit.isAlive();
|
|
|
|
public bool HasValidPosition =>
|
|
HasFollowUnit || (Position != Vector3.zero && !float.IsNaN(Position.x));
|
|
}
|