Skip to content

Commit e048fc8

Browse files
committed
Update test project to match updated location trigger
1 parent 5dd698c commit e048fc8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

TestProjects/Main/Assets/Scripts/ScriptableObjects/iOSNotificationTemplateLocationTrigger.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ public class iOSNotificationTemplateLocationTrigger : ScriptableObject
3434

3535
[Space(10)]
3636
[Header("Location Trigger")]
37-
public float CenterX = 0f;
38-
public float CenterY = 0f;
37+
public double Latitude = 0f;
38+
public double Longitude = 0f;
3939
public float Radius = 2f;
4040
public bool NotifyOnEntry = true;
4141
public bool NotifyOnExit = false;
42+
public bool Repeats = false;
4243
#endif
4344
}
4445
}

TestProjects/Main/Assets/Scripts/iOSTest.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,12 @@ private void InstantiateAllTestButtons()
321321
Data = template.Data,
322322
Trigger = new iOSNotificationLocationTrigger()
323323
{
324-
Center = new Vector2(template.CenterX, template.CenterY),
324+
Latitude = template.Latitude,
325+
Longitude = template.Longitude,
325326
Radius = template.Radius,
326327
NotifyOnEntry = template.NotifyOnEntry,
327-
NotifyOnExit = template.NotifyOnExit
328+
NotifyOnExit = template.NotifyOnExit,
329+
Repeats = template.Repeats,
328330
}
329331
}
330332
);

0 commit comments

Comments
 (0)