-
Notifications
You must be signed in to change notification settings - Fork 0
/
TrackEvent_genrel_ar1.cs
57 lines (49 loc) · 1.29 KB
/
TrackEvent_genrel_ar1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TrackEvent_genrel_ar1 : DefaultTrackableEventHandler
{
public GameObject fishmark;
public GameObject pages;
public GameObject pagemark;
public GameObject qrcode;
public bool Ispagemark = false;
public int globalnum;
public TypewriterEffect typewriterEffect;
public TrackEvent_genrel3 trackEvent_Genrel3;
bool Isfound = false;
void Update()
{
if (Isfound)
{
if (typewriterEffect.Isqr)
{
qrcode.SetActive(true);
}
}
if (pages.activeSelf)
{
Ispagemark = true;
}
if (Ispagemark)
{
fishmark.SetActive(true);
}
}
protected override void OnTrackingFound()
{
base.OnTrackingFound();
if (Globaldatas.num == globalnum && trackEvent_Genrel3.Ispagemark == false)
{
pages.SetActive(true);
Isfound = true;
}
}
protected override void OnTrackingLost()
{
qrcode.SetActive(false);
Isfound = false;
pages.SetActive(false);
base.OnTrackingLost();
}
}