-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathScreenShotConfig.cs
More file actions
66 lines (58 loc) · 1.82 KB
/
Copy pathScreenShotConfig.cs
File metadata and controls
66 lines (58 loc) · 1.82 KB
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
58
59
60
61
62
63
64
65
66
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ScreenShotConfig
{
public ShotDeviceInfo deviceInfo;
public int GetTotalPage()
{
return 5;
}
public ShotItemInfo GetPage(ShotDeviceInfo dev, int idx)
{
ShotItemInfo info = new ShotItemInfo();
UIViewController controller = null;
info.isRealGameUI = true;
if (dev.name == ScreenDeviceInfo.DEVICE_NAME_ICON)
{
controller = IconViewController.main;
IconViewController.main.deviceInfo = dev;
}
else if (dev.name == ScreenDeviceInfo.DEVICE_NAME_AD)
{
controller = AdHomeViewController.main;
}
else if (dev.name == ScreenDeviceInfo.DEVICE_NAME_COPY_RIGHT_HUAWEI)
{
controller = CopyRightViewController.main;
CopyRightViewController.main.deviceInfo = dev;
}
else
{
switch (idx)
{
case 0:
controller = HomeViewController.main;
break;
case 1:
controller = GuankaViewController.main;
break;
case 2:
LevelManager.main.gameLevel = 0; controller = GameViewController.main;
break;
case 3:
LevelManager.main.gameLevel = 1; controller = GameViewController.main;
break;
case 4:
LevelManager.main.gameLevel = 2;
controller = GameViewController.main;
break;
default:
controller = HomeViewController.main;
break;
}
}
info.controller = controller;
return info;
}
}