Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FastMail
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanqing
FastMail
Commits
3ec4f836
Commit
3ec4f836
authored
Jan 06, 2021
by
wanqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手指图标位置适配
parent
9825c061
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
ChainRopeView.cs
FastMail/Assets/0A2_Scripts/Battle/View/ChainRopeView.cs
+2
-2
GlobalConfig.cs
FastMail/Assets/0A2_Scripts/Services/GlobalConfig.cs
+9
-0
No files found.
FastMail/Assets/0A2_Scripts/Battle/View/ChainRopeView.cs
View file @
3ec4f836
...
...
@@ -572,8 +572,8 @@ public class ChainRopeView : MonoBehaviour
//float varY = Input.mousePosition.y - Screen.height / 2f;
//BattleCtrl.instance.battleUI.SetMousePos(varX, varY);
Vector3
varVec3
=
Camera
.
main
.
WorldToScreenPoint
(
m_topCollider
.
transform
.
position
);
varVec3
.
x
=
varVec3
.
x
-
Screen
.
width
/
2f
+
100
;
varVec3
.
y
=
varVec3
.
y
-
Screen
.
height
/
2f
-
100
;
varVec3
.
x
=
(
varVec3
.
x
-
Screen
.
width
/
2f
)/
(
Screen
.
width
/
GlobalConfig
.
NormalWidth
)
+
100
;
varVec3
.
y
=
(
varVec3
.
y
-
Screen
.
height
/
2f
)/(
Screen
.
width
/
GlobalConfig
.
NormalWidth
)
-
100
;
BattleCtrl
.
instance
.
battleUI
.
SetMousePos
(
varVec3
.
x
,
varVec3
.
y
);
}
else
if
(
Input
.
GetMouseButtonUp
(
0
))
...
...
FastMail/Assets/0A2_Scripts/Services/GlobalConfig.cs
View file @
3ec4f836
...
...
@@ -25,6 +25,15 @@ public class GlobalConfig
public
static
string
VibrationKey
=
"VibrationKey"
;
//震动Key
public
static
string
SoundKey
=
"SoundKey"
;
//音效Key
public
static
string
BgmKey
=
"BgmKey"
;
//音乐Key
public
static
float
NormalWidth
=
1080f
;
public
static
float
NormalHeight
=
1920f
;
public
static
float
CurRatio
=
(
float
)
UnityEngine
.
Screen
.
height
/
(
float
)
UnityEngine
.
Screen
.
width
;
public
static
float
NormalRatio
=
NormalHeight
/
NormalWidth
;
public
static
float
Ratio
=
CurRatio
/
NormalRatio
;
public
static
float
CanvaUIScaleX
=
BattleCtrl
.
instance
.
battleUI
.
gameObject
.
transform
.
localScale
.
x
;
//uicanva适配大小
}
public
enum
LangeType
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment