private bool Equals(BaseTemplate other) { if (other == null) { return(false); } return(other.Entity?.Id == Entity?.Id); }
public ActionEvent(BaseTemplate origin, BaseTemplate focus, Vector3 position, Quaternion rotation, ActionState state) { Origin = origin.Entity.FindTemplate <CharacterTemplate>(); Target = focus.Entity.FindTemplate <CharacterTemplate>(); Action = Origin.CurrentAction; Position = position; Rotation = rotation; State = state; }