36 lines
786 B
C#
36 lines
786 B
C#
using Unity.Services.Analytics;
|
|
|
|
namespace DanieleMarotta.RiversongCodeShowcase
|
|
{
|
|
public sealed class DemoCompletedAnalyticsEvent : Event
|
|
{
|
|
public DemoCompletedAnalyticsEvent() : base("demo_completed")
|
|
{
|
|
}
|
|
|
|
public string SessionId
|
|
{
|
|
set => SetParameter("session_id", value);
|
|
}
|
|
|
|
public float PlaytimeSeconds
|
|
{
|
|
set => SetParameter("playtime_seconds", value);
|
|
}
|
|
|
|
public int TotalWeeks
|
|
{
|
|
set => SetParameter("total_weeks", value);
|
|
}
|
|
|
|
public int Population
|
|
{
|
|
set => SetParameter("population", value);
|
|
}
|
|
|
|
public float Happiness
|
|
{
|
|
set => SetParameter("happiness", value);
|
|
}
|
|
}
|
|
} |