public void RaisePointsUpdated(float kingFavor) { PointsUpdated?.Invoke(kingFavor); if (kingFavor <= 0) { print("lost"); // Lose condition Lost = true; LoadEndGameScene(); } }
protected virtual void OnPointsUpdated(ActivityPointType type, int amount, int change) => PointsUpdated?.Invoke(this, new PointsUpdatedEventArgs(type, amount, change));