Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
MDPro3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dilmah
MDPro3
Commits
e381d83f
Commit
e381d83f
authored
May 01, 2024
by
SherryChaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
df48e913
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
682 additions
and
177 deletions
+682
-177
Assets/Addressables/Text/UpdateContent.txt
Assets/Addressables/Text/UpdateContent.txt
+7
-5
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
+559
-123
Assets/Main.unity
Assets/Main.unity
+7
-7
Assets/ScriptableObjects/DuelPrefabs/DuelLogLpChange.prefab
Assets/ScriptableObjects/DuelPrefabs/DuelLogLpChange.prefab
+1
-1
Assets/Scripts/MDPro3/Duel/GameCard.cs
Assets/Scripts/MDPro3/Duel/GameCard.cs
+60
-24
Assets/Scripts/MDPro3/Managers/BackgroundManager.cs
Assets/Scripts/MDPro3/Managers/BackgroundManager.cs
+1
-0
Assets/Scripts/MDPro3/Managers/CameraManager.cs
Assets/Scripts/MDPro3/Managers/CameraManager.cs
+1
-1
Assets/Scripts/MDPro3/Servants/OcgCore.cs
Assets/Scripts/MDPro3/Servants/OcgCore.cs
+37
-13
Assets/Scripts/MDPro3/Tools.cs
Assets/Scripts/MDPro3/Tools.cs
+1
-1
Assets/Scripts/MDPro3/UI/Function/AutoScale.cs
Assets/Scripts/MDPro3/UI/Function/AutoScale.cs
+5
-0
Data/locales/zh-CN/translation.conf
Data/locales/zh-CN/translation.conf
+2
-0
ProjectSettings/ProjectSettings.asset
ProjectSettings/ProjectSettings.asset
+1
-2
No files found.
Assets/Addressables/Text/UpdateContent.txt
View file @
e381d83f
MDPro3 v1.1.0更新:
MDPro3 v1.1.0更新:
1.添加决斗日志功能。
1.添加决斗日志功能。
2.添加背景切换功能。
2.添加背景切换功能。
...
@@ -6,10 +7,11 @@ MDPro3 v1.1.0更新:
...
@@ -6,10 +7,11 @@ MDPro3 v1.1.0更新:
5.现在能查看未知卡片了。
5.现在能查看未知卡片了。
6.现在选择卡片框也支持鼠标滚轮翻页了。
6.现在选择卡片框也支持鼠标滚轮翻页了。
7.现在能修改人机时的端口了。
7.现在能修改人机时的端口了。
8.连接箭头默认不再显示在立绘之上。
8.新投稿动画:元素英雄 水手侠、元素英雄 永生侠、命运英雄 恐惧人。
9.修复开启立绘后,对方的连接怪兽连接箭头方向与预期相反的错误。
9.连接箭头默认不再显示在立绘之上。
10.修复选择表示形式时,里侧守备表示的选项为纯白的错误。
10.修复开启立绘后,对方的连接怪兽连接箭头方向与预期相反的错误。
11.修复英语、西班牙语、繁体中文下,灵摆卡片描述文字分割时的错误。
11.修复选择表示形式时,里侧守备表示的选项为纯白的错误。
12.修复英语、西班牙语、繁体中文下,灵摆卡片描述文字没有被正确分割的错误。
MDPro3 v1.0.9更新:
MDPro3 v1.0.9更新:
1.设置中新增了超先行卡的一键下载功能。
1.设置中新增了超先行卡的一键下载功能。
...
@@ -88,4 +90,4 @@ MDPro3 v1.0.2更新:
...
@@ -88,4 +90,4 @@ MDPro3 v1.0.2更新:
3.卡组编辑界面新增分享功能。
3.卡组编辑界面新增分享功能。
4.创建卡组时,支持剪切板中的卡组分享码转换为卡组。
4.创建卡组时,支持剪切板中的卡组分享码转换为卡组。
5.修复普通稀有度卡片颜色过曝问题。
5.修复普通稀有度卡片颜色过曝问题。
6.设置-关于更新-下载地址新增夸克网盘:https://pan.quark.cn/s/ca2e4e7a8c63
6.设置-关于更新-下载地址新增夸克网盘:https://pan.quark.cn/s/ca2e4e7a8c63
\ No newline at end of file
Assets/Fonts/SourceHanSansSC-Medium SDF.asset
View file @
e381d83f
This diff is collapsed.
Click to expand it.
Assets/Main.unity
View file @
e381d83f
...
@@ -19518,7 +19518,7 @@ MonoBehaviour:
...
@@ -19518,7 +19518,7 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 931169953}
m_TargetGraphic: {fileID: 931169953}
m_HandleRect: {fileID: 931169952}
m_HandleRect: {fileID: 931169952}
m_Direction: 2
m_Direction: 2
m_Value:
0
m_Value:
1
m_Size: 1
m_Size: 1
m_NumberOfSteps: 0
m_NumberOfSteps: 0
m_OnValueChanged:
m_OnValueChanged:
...
@@ -37164,7 +37164,7 @@ RectTransform:
...
@@ -37164,7 +37164,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0.000030517578}
m_AnchoredPosition: {x: 0, y:
-
0.000030517578}
m_SizeDelta: {x: 0, y: 300}
m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0.5, y: 1}
m_Pivot: {x: 0.5, y: 1}
--- !u!114 &702608002
--- !u!114 &702608002
...
@@ -40529,7 +40529,7 @@ MonoBehaviour:
...
@@ -40529,7 +40529,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 476827028}
m_HandleRect: {fileID: 476827028}
m_Direction: 2
m_Direction: 2
m_Value: 1
m_Value: 1
m_Size: 0.5
972713
m_Size: 0.5
774225
m_NumberOfSteps: 0
m_NumberOfSteps: 0
m_OnValueChanged:
m_OnValueChanged:
m_PersistentCalls:
m_PersistentCalls:
...
@@ -42652,7 +42652,7 @@ RectTransform:
...
@@ -42652,7 +42652,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0
.000061035156
}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 840}
m_SizeDelta: {x: 0, y: 840}
m_Pivot: {x: 0, y: 1}
m_Pivot: {x: 0, y: 1}
--- !u!1 &824349623
--- !u!1 &824349623
...
@@ -57252,7 +57252,7 @@ RectTransform:
...
@@ -57252,7 +57252,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y:
0
}
m_AnchoredPosition: {x: 0, y:
-0.000030517578
}
m_SizeDelta: {x: 0, y: 300}
m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0, y: 1}
m_Pivot: {x: 0, y: 1}
--- !u!1 &1110086322
--- !u!1 &1110086322
...
@@ -57742,7 +57742,7 @@ RectTransform:
...
@@ -57742,7 +57742,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0
.000030517578
}
m_SizeDelta: {x: 0, y: 300}
m_SizeDelta: {x: 0, y: 300}
m_Pivot: {x: 0.5, y: 1}
m_Pivot: {x: 0.5, y: 1}
--- !u!1 &1117266860
--- !u!1 &1117266860
...
@@ -74978,7 +74978,7 @@ MonoBehaviour:
...
@@ -74978,7 +74978,7 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 761159129}
m_TargetGraphic: {fileID: 761159129}
m_HandleRect: {fileID: 761159127}
m_HandleRect: {fileID: 761159127}
m_Direction: 2
m_Direction: 2
m_Value:
0
m_Value:
1
m_Size: 1
m_Size: 1
m_NumberOfSteps: 0
m_NumberOfSteps: 0
m_OnValueChanged:
m_OnValueChanged:
Assets/ScriptableObjects/DuelPrefabs/DuelLogLpChange.prefab
View file @
e381d83f
...
@@ -312,7 +312,7 @@ RectTransform:
...
@@ -312,7 +312,7 @@ RectTransform:
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_LocalEulerAnglesHint
:
{
x
:
0
,
y
:
0
,
z
:
0
}
m_AnchorMin
:
{
x
:
1
,
y
:
0
}
m_AnchorMin
:
{
x
:
1
,
y
:
0
}
m_AnchorMax
:
{
x
:
1
,
y
:
0
}
m_AnchorMax
:
{
x
:
1
,
y
:
0
}
m_AnchoredPosition
:
{
x
:
-8
,
y
:
3
}
m_AnchoredPosition
:
{
x
:
-8
,
y
:
3
.5
}
m_SizeDelta
:
{
x
:
0
,
y
:
30
}
m_SizeDelta
:
{
x
:
0
,
y
:
30
}
m_Pivot
:
{
x
:
1
,
y
:
0
}
m_Pivot
:
{
x
:
1
,
y
:
0
}
---
!u!222
&3706567525743764113
---
!u!222
&3706567525743764113
...
...
Assets/Scripts/MDPro3/Duel/GameCard.cs
View file @
e381d83f
...
@@ -120,10 +120,8 @@ namespace MDPro3
...
@@ -120,10 +120,8 @@ namespace MDPro3
}
}
if
(!
hover
&&
!
clicked
&&
!
handDefault
)
if
(!
hover
&&
!
clicked
&&
!
handDefault
)
{
{
AnimationHandDefault
(
0.1f
);
AnimationHandDefault
(
0.1f
);
}
}
if
(
Math
.
Abs
(
Program
.
I
().
ocgcore
.
handOffset
-
Program
.
I
().
ocgcore
.
lastHandOffset
)
>
10
)
if
(
Math
.
Abs
(
Program
.
I
().
ocgcore
.
handOffset
-
Program
.
I
().
ocgcore
.
lastHandOffset
)
>
10
)
SetHandDefault
();
SetHandDefault
();
}
}
...
@@ -880,7 +878,7 @@ namespace MDPro3
...
@@ -880,7 +878,7 @@ namespace MDPro3
public
GPS
cacheP
;
public
GPS
cacheP
;
bool
inAnimation
;
bool
inAnimation
;
static
uint
lastMovedLocation
;
static
uint
lastMovedLocation
;
public
float
Move
(
GPS
gps
,
bool
rush
=
false
)
public
float
Move
(
GPS
gps
,
bool
rush
=
false
,
float
wait
=
0f
)
{
{
Program
.
I
().
ocgcore
.
lastMoveCard
=
this
;
Program
.
I
().
ocgcore
.
lastMoveCard
=
this
;
...
@@ -951,6 +949,8 @@ namespace MDPro3
...
@@ -951,6 +949,8 @@ namespace MDPro3
if
(
model
==
null
)
if
(
model
==
null
)
{
{
CreateModel
();
CreateModel
();
if
((
cacheP
.
location
&
(
uint
)
CardLocation
.
Deck
)
>
0
)
cacheP
.
position
=
(
int
)
CardPosition
.
FaceDownAttack
;
ModelAt
(
cacheP
);
ModelAt
(
cacheP
);
}
}
...
@@ -1156,16 +1156,37 @@ namespace MDPro3
...
@@ -1156,16 +1156,37 @@ namespace MDPro3
goto
SummonPass
;
goto
SummonPass
;
}
}
bool
handAppeal
=
false
;
bool
fieldAppeal
=
false
;
var
ease
=
Ease
.
Unset
;
switch
(
Program
.
I
().
ocgcore
.
currentMessage
)
switch
(
Program
.
I
().
ocgcore
.
currentMessage
)
{
{
case
GameMessage
.
Draw
:
case
GameMessage
.
Draw
:
moveTime
=
0.15f
;
if
(
p
.
controller
==
0
)
{
moveTime
=
0.5f
;
handAppeal
=
true
;
}
else
moveTime
=
0.2f
;
break
;
break
;
case
GameMessage
.
Move
:
case
GameMessage
.
Move
:
if
((
p
.
location
&
(
uint
)
CardLocation
.
Onfield
)
>
0
)
if
((
p
.
location
&
(
uint
)
CardLocation
.
Onfield
)
>
0
&&
cacheP
!=
null
&&
(
cacheP
.
location
&
(
uint
)
CardLocation
.
Onfield
)
==
0
&&
(
p
.
location
&
(
uint
)
CardLocation
.
Overlay
)
==
0
)
{
moveTime
=
0.4f
;
moveTime
=
0.4f
;
fieldAppeal
=
true
;
}
else
if
((
p
.
location
&
(
uint
)
CardLocation
.
Hand
)
>
0
&&
p
.
controller
==
0
)
{
moveTime
=
0.6f
;
handAppeal
=
true
;
}
else
else
moveTime
=
0.2f
;
moveTime
=
0.2
5
f
;
break
;
break
;
case
GameMessage
.
FlipSummoning
:
case
GameMessage
.
FlipSummoning
:
case
GameMessage
.
PosChange
:
case
GameMessage
.
PosChange
:
...
@@ -1182,7 +1203,19 @@ namespace MDPro3
...
@@ -1182,7 +1203,19 @@ namespace MDPro3
var
turn
=
manager
.
GetElement
<
Transform
>(
"Turn"
);
var
turn
=
manager
.
GetElement
<
Transform
>(
"Turn"
);
//翋极痄雄
//翋极痄雄
sequence
.
Append
(
model
.
transform
.
DOLocalMove
(
position
,
moveTime
).
OnStart
(()
=>
sequence
.
AppendInterval
(
wait
);
var
targetMainMoveTime
=
moveTime
;
if
(
handAppeal
)
{
targetMainMoveTime
*=
0.666f
;
ease
=
Ease
.
OutCubic
;
}
if
(
fieldAppeal
)
{
targetMainMoveTime
*=
0.666f
;
ease
=
Ease
.
OutSine
;
}
sequence
.
Append
(
model
.
transform
.
DOLocalMove
(
position
,
targetMainMoveTime
).
SetEase
(
ease
).
OnStart
(()
=>
{
{
if
((
cacheP
.
location
&
(
uint
)
CardLocation
.
Extra
)
>
0
if
((
cacheP
.
location
&
(
uint
)
CardLocation
.
Extra
)
>
0
&&
(
p
.
location
&
(
uint
)
CardLocation
.
Extra
)
==
0
&&
(
p
.
location
&
(
uint
)
CardLocation
.
Extra
)
==
0
...
@@ -1192,47 +1225,49 @@ namespace MDPro3
...
@@ -1192,47 +1225,49 @@ namespace MDPro3
||
(
p
.
location
&
(
uint
)
CardLocation
.
MonsterZone
)
==
0
)
||
(
p
.
location
&
(
uint
)
CardLocation
.
MonsterZone
)
==
0
)
HideLabel
();
HideLabel
();
}));
}));
if
((
p
.
location
&
(
uint
)
CardLocation
.
Onfield
)
>
0
if
(
fieldAppeal
)
&&
cacheP
!=
null
&&
(
cacheP
.
location
&
(
uint
)
CardLocation
.
Onfield
)
==
0
&&
(
p
.
location
&
(
uint
)
CardLocation
.
Overlay
)
==
0
)
{
{
sequence
.
Join
(
cardPlane
.
DOLocalMove
(
Vector3
.
up
*
15f
,
moveTime
*
0.5f
).
SetEase
(
Ease
.
InOutSin
e
).
OnComplete
(()
=>
sequence
.
Join
(
cardPlane
.
DOLocalMove
(
Vector3
.
up
*
15f
,
targetMainMoveTime
).
SetEase
(
eas
e
).
OnComplete
(()
=>
{
{
sequence
.
Join
(
cardPlane
.
DOLocalMove
(
Vector3
.
zero
,
moveTime
*
0.5f
).
SetEase
(
Ease
.
InOut
Sine
));
sequence
.
Join
(
cardPlane
.
DOLocalMove
(
Vector3
.
zero
,
targetMainMoveTime
*
0.5f
).
SetEase
(
Ease
.
In
Sine
));
}));
}));
}
}
sequence
.
Join
(
pivot
.
DOScale
(
GetCardScale
(
p
),
m
oveTime
*
0.95f
));
sequence
.
Join
(
pivot
.
DOScale
(
GetCardScale
(
p
),
targetMainM
oveTime
*
0.95f
));
//Turn
//Turn
if
((
p
.
location
&
(
uint
)
CardLocation
.
Removed
)
>
0
if
((
p
.
location
&
(
uint
)
CardLocation
.
Removed
)
>
0
||
(
p
.
location
&
(
uint
)
CardLocation
.
Deck
)
>
0
||
(
p
.
location
&
(
uint
)
CardLocation
.
Deck
)
>
0
||
(
p
.
location
&
(
uint
)
CardLocation
.
Extra
)
>
0
)
||
(
p
.
location
&
(
uint
)
CardLocation
.
Extra
)
>
0
)
sequence
.
Join
(
turn
.
DOLocalRotate
(
new
Vector3
(
0
,
0
,
rotation
.
z
),
moveTime
*
0.5
f
));
sequence
.
Join
(
turn
.
DOLocalRotate
(
new
Vector3
(
0
,
0
,
rotation
.
z
),
targetMainMoveTime
*
0.8
f
));
else
else
sequence
.
Join
(
turn
.
DOLocalRotate
(
new
Vector3
(
0
,
(
rotation
.
y
==
0
)
||
(
rotation
.
y
==
180
)
?
0
:
270
,
rotation
.
z
),
moveTime
*
0.5f
));
sequence
.
Join
(
turn
.
DOLocalRotate
(
new
Vector3
(
0
,
(
rotation
.
y
==
0
)
||
(
rotation
.
y
==
180
)
?
0
:
270
,
rotation
.
z
),
targetMainMoveTime
*
0.8f
).
SetEase
(
ease
));
if
(
handAppeal
)
sequence
.
Join
(
turn
.
DOLocalMove
(
new
Vector3
(
0
,
0
,
10
),
targetMainMoveTime
).
SetEase
(
Ease
.
OutCubic
).
OnComplete
(()
=>
{
turn
.
DOLocalMove
(
Vector3
.
zero
,
targetMainMoveTime
*
0.5f
).
SetEase
(
Ease
.
InCubic
);
}));
//CardPlane
//CardPlane
if
((
p
.
location
&
(
uint
)
CardLocation
.
Deck
)
>
0
if
((
p
.
location
&
(
uint
)
CardLocation
.
Deck
)
>
0
||
(
p
.
location
&
(
uint
)
CardLocation
.
Extra
)
>
0
||
(
p
.
location
&
(
uint
)
CardLocation
.
Extra
)
>
0
||
(
p
.
location
&
(
uint
)
CardLocation
.
Removed
)
>
0
)
||
(
p
.
location
&
(
uint
)
CardLocation
.
Removed
)
>
0
)
sequence
.
Join
(
cardPlane
.
DOLocalRotate
(
new
Vector3
(
rotation
.
x
,
rotation
.
y
,
0
),
m
oveTime
*
0.5f
));
sequence
.
Join
(
cardPlane
.
DOLocalRotate
(
new
Vector3
(
rotation
.
x
,
rotation
.
y
,
0
),
targetMainM
oveTime
*
0.5f
));
else
else
sequence
.
Join
(
cardPlane
.
DOLocalRotate
(
new
Vector3
(
rotation
.
x
,
(
rotation
.
y
==
0
||
rotation
.
y
==
270
)
?
0
:
180
,
0
),
m
oveTime
*
0.5f
));
sequence
.
Join
(
cardPlane
.
DOLocalRotate
(
new
Vector3
(
rotation
.
x
,
(
rotation
.
y
==
0
||
rotation
.
y
==
270
)
?
0
:
180
,
0
),
targetMainM
oveTime
*
0.5f
));
//Pivot && Offset
//Pivot && Offset
if
((
p
.
location
&
(
uint
)
CardLocation
.
Hand
)
>
0
)
if
((
p
.
location
&
(
uint
)
CardLocation
.
Hand
)
>
0
)
{
{
sequence
.
Join
(
pivot
.
DOLocalMove
(
new
Vector3
(
0
,
0
,
HandOffsetPositionByX
(
position
.
x
)),
moveTime
/
4
));
sequence
.
Join
(
pivot
.
DOLocalMove
(
new
Vector3
(
0
,
0
,
HandOffsetPositionByX
(
position
.
x
)),
targetMainMoveTime
/
4
));
sequence
.
Join
(
offset
.
DOLocalRotate
(
new
Vector3
(
0
,
HandOffsetRotationByX
(
position
.
x
),
handAngle
),
moveTime
/
4
));
sequence
.
Join
(
offset
.
DOLocalRotate
(
new
Vector3
(
0
,
HandOffsetRotationByX
(
position
.
x
),
handAngle
),
targetMainMoveTime
/
4
));
sequence
.
Join
(
turn
.
DOLocalRotate
(
new
Vector3
(
0
,
0
,
data
.
Id
>
0
?
0
:
180
),
moveTime
/
4
));
handDefault
=
true
;
handDefault
=
true
;
}
}
else
else
{
{
sequence
.
Join
(
offset
.
DOLocalMove
(
Vector3
.
zero
,
m
oveTime
/
4
));
sequence
.
Join
(
offset
.
DOLocalMove
(
Vector3
.
zero
,
targetMainM
oveTime
/
4
));
sequence
.
Join
(
offset
.
DOLocalRotate
(
Vector3
.
zero
,
0.21f
));
sequence
.
Join
(
offset
.
DOLocalRotate
(
Vector3
.
zero
,
0.21f
));
sequence
.
Join
(
pivot
.
DOLocalMove
(
Vector3
.
zero
,
m
oveTime
/
4
));
sequence
.
Join
(
pivot
.
DOLocalMove
(
Vector3
.
zero
,
targetMainM
oveTime
/
4
));
sequence
.
Join
(
pivot
.
DOLocalRotate
(
Vector3
.
zero
,
m
oveTime
/
4
));
sequence
.
Join
(
pivot
.
DOLocalRotate
(
Vector3
.
zero
,
targetMainM
oveTime
/
4
));
}
}
if
((
p
.
location
&
((
uint
)
CardLocation
.
Grave
+
(
uint
)
CardLocation
.
Removed
))
>
0
)
if
((
p
.
location
&
((
uint
)
CardLocation
.
Grave
+
(
uint
)
CardLocation
.
Removed
))
>
0
)
...
@@ -1895,6 +1930,7 @@ namespace MDPro3
...
@@ -1895,6 +1930,7 @@ namespace MDPro3
}
}
else
else
{
{
return
;
model
.
transform
.
DOShakePosition
(
0.4f
,
Vector3
.
one
*
0.2f
,
10
,
90
,
false
,
true
,
ShakeRandomnessMode
.
Harmonic
);
model
.
transform
.
DOShakePosition
(
0.4f
,
Vector3
.
one
*
0.2f
,
10
,
90
,
false
,
true
,
ShakeRandomnessMode
.
Harmonic
);
model
.
transform
.
DOShakeRotation
(
0.4f
,
5f
);
model
.
transform
.
DOShakeRotation
(
0.4f
,
5f
);
Sequence
sequence
=
DOTween
.
Sequence
();
Sequence
sequence
=
DOTween
.
Sequence
();
...
...
Assets/Scripts/MDPro3/Managers/BackgroundManager.cs
View file @
e381d83f
...
@@ -32,6 +32,7 @@ namespace MDPro3
...
@@ -32,6 +32,7 @@ namespace MDPro3
var
random
=
Random
.
Range
(
0
,
backgrounds
.
Count
);
var
random
=
Random
.
Range
(
0
,
backgrounds
.
Count
);
id
=
Tools
.
GetNthElement
(
backgrounds
,
random
).
Key
;
id
=
Tools
.
GetNthElement
(
backgrounds
,
random
).
Key
;
}
}
var
endString
=
id
.
ToString
(
"D4"
);
var
endString
=
id
.
ToString
(
"D4"
);
back
=
ABLoader
.
LoadFromFolder
(
"wallpaper/back"
+
endString
,
"Background"
+
endString
,
true
);
back
=
ABLoader
.
LoadFromFolder
(
"wallpaper/back"
+
endString
,
"Background"
+
endString
,
true
);
back
.
transform
.
GetChild
(
0
).
gameObject
.
AddComponent
<
AutoScale
>();
back
.
transform
.
GetChild
(
0
).
gameObject
.
AddComponent
<
AutoScale
>();
...
...
Assets/Scripts/MDPro3/Managers/CameraManager.cs
View file @
e381d83f
...
@@ -214,7 +214,7 @@ namespace MDPro3
...
@@ -214,7 +214,7 @@ namespace MDPro3
}
}
else
else
{
{
Program
.
I
().
camera_
.
cameraMain
.
DOShakePosition
(
0.
3f
,
1
,
10
0
);
Program
.
I
().
camera_
.
cameraMain
.
DOShakePosition
(
0.
2f
,
0.5f
,
5
0
);
}
}
}
}
}
}
...
...
Assets/Scripts/MDPro3/Servants/OcgCore.cs
View file @
e381d83f
...
@@ -1413,6 +1413,10 @@ namespace MDPro3
...
@@ -1413,6 +1413,10 @@ namespace MDPro3
turns
=
0
;
turns
=
0
;
handOffset
=
0
;
handOffset
=
0
;
lastHandOffset
=
0
;
lastHandOffset
=
0
;
myPreHandCards
.
Clear
();
opPreHandCards
.
Clear
();
needRefreshHand0
=
true
;
needRefreshHand1
=
true
;
materialCards
.
Clear
();
materialCards
.
Clear
();
cardsInChain
.
Clear
();
cardsInChain
.
Clear
();
codesInChain
.
Clear
();
codesInChain
.
Clear
();
...
@@ -2230,6 +2234,7 @@ namespace MDPro3
...
@@ -2230,6 +2234,7 @@ namespace MDPro3
if
(
psum
)
if
(
psum
)
{
{
psum
=
false
;
psum
=
false
;
cardsBeTarget
.
Clear
();
item
=
Instantiate
(
chainSolving
>
0
?
container
.
duelLogText2
:
container
.
duelLogText
);
item
=
Instantiate
(
chainSolving
>
0
?
container
.
duelLogText2
:
container
.
duelLogText
);
item
.
transform
.
GetChild
(
1
).
GetComponent
<
Text
>().
text
=
InterString
.
Get
(
"灵摆召唤结束"
);
item
.
transform
.
GetChild
(
1
).
GetComponent
<
Text
>().
text
=
InterString
.
Get
(
"灵摆召唤结束"
);
log
.
AddLog
(
item
);
log
.
AddLog
(
item
);
...
@@ -2410,13 +2415,13 @@ namespace MDPro3
...
@@ -2410,13 +2415,13 @@ namespace MDPro3
item
.
transform
.
GetChild
(
5
).
GetComponent
<
Button
>().
onClick
.
AddListener
(()
=>
item
.
transform
.
GetChild
(
5
).
GetComponent
<
Button
>().
onClick
.
AddListener
(()
=>
{
{
Debug
.
LogFormat
(
"Location: {0:X}, Sequence: {1}, Position: {2}"
,
from
.
location
,
from
.
sequence
,
from
.
position
);
Debug
.
LogFormat
(
"Location: {0:X}, Sequence: {1}, Position: {2
:X
}"
,
from
.
location
,
from
.
sequence
,
from
.
position
);
});
});
if
(
to
!=
null
)
if
(
to
!=
null
)
{
{
item
.
transform
.
GetChild
(
7
).
GetComponent
<
Button
>().
onClick
.
AddListener
(()
=>
item
.
transform
.
GetChild
(
7
).
GetComponent
<
Button
>().
onClick
.
AddListener
(()
=>
{
{
Debug
.
LogFormat
(
"Location: {0:X}, Sequence: {1}, Position: {2}"
,
to
.
location
,
to
.
sequence
,
to
.
position
);
Debug
.
LogFormat
(
"Location: {0:X}, Sequence: {1}, Position: {2
:X
}"
,
to
.
location
,
to
.
sequence
,
to
.
position
);
});
});
}
}
#endif
#endif
...
@@ -2944,8 +2949,8 @@ namespace MDPro3
...
@@ -2944,8 +2949,8 @@ namespace MDPro3
}
}
}
}
catch
{
}
catch
{
}
needRefreshHand0
=
true
;
myPreHandCards
.
Clear
()
;
needRefreshHand1
=
true
;
opPreHandCards
.
Clear
()
;
RefreshHandCardPosition
();
RefreshHandCardPosition
();
RefreshBgState
();
RefreshBgState
();
break
;
break
;
...
@@ -4197,6 +4202,7 @@ namespace MDPro3
...
@@ -4197,6 +4202,7 @@ namespace MDPro3
var
deckCount
=
GetLocationCardCount
(
CardLocation
.
Deck
,
(
uint
)
player
);
var
deckCount
=
GetLocationCardCount
(
CardLocation
.
Deck
,
(
uint
)
player
);
var
handCount
=
GetLocationCardCount
(
CardLocation
.
Hand
,
(
uint
)
player
);
var
handCount
=
GetLocationCardCount
(
CardLocation
.
Hand
,
(
uint
)
player
);
sleep
=
0
;
sleep
=
0
;
List
<
GameCard
>
preHands
=
new
List
<
GameCard
>();
for
(
var
i
=
0
;
i
<
count
;
i
++)
for
(
var
i
=
0
;
i
<
count
;
i
++)
{
{
card
=
GCS_Get
(
card
=
GCS_Get
(
...
@@ -4207,15 +4213,26 @@ namespace MDPro3
...
@@ -4207,15 +4213,26 @@ namespace MDPro3
sequence
=
(
uint
)(
deckCount
-
1
-
i
),
sequence
=
(
uint
)(
deckCount
-
1
-
i
),
});
});
card
.
SetCode
(
r
.
ReadInt32
()
&
0x7fffffff
);
card
.
SetCode
(
r
.
ReadInt32
()
&
0x7fffffff
);
if
(
card
!=
null
)
preHands
.
Add
(
card
);
sleep
=
card
.
Move
(
}
if
(
player
==
0
)
{
needRefreshHand0
=
true
;
myPreHandCards
=
preHands
;
}
else
{
needRefreshHand1
=
true
;
opPreHandCards
=
preHands
;
}
for
(
var
i
=
0
;
i
<
preHands
.
Count
;
i
++)
sleep
=
preHands
[
i
].
Move
(
new
GPS
new
GPS
{
{
controller
=
(
uint
)
player
,
controller
=
(
uint
)
player
,
location
=
(
uint
)
CardLocation
.
Hand
,
location
=
(
uint
)
CardLocation
.
Hand
,
sequence
=
(
uint
)(
handCount
+
i
),
sequence
=
(
uint
)(
handCount
+
i
),
});
});
}
Sleep
((
int
)(
sleep
*
100
));
Sleep
((
int
)(
sleep
*
100
));
break
;
break
;
case
GameMessage
.
TagSwap
:
case
GameMessage
.
TagSwap
:
...
@@ -6119,14 +6136,19 @@ namespace MDPro3
...
@@ -6119,14 +6136,19 @@ namespace MDPro3
public
bool
needRefreshHand1
=
true
;
public
bool
needRefreshHand1
=
true
;
public
List
<
GameCard
>
myHandCards
=
new
List
<
GameCard
>();
public
List
<
GameCard
>
myHandCards
=
new
List
<
GameCard
>();
public
List
<
GameCard
>
opHandCards
=
new
List
<
GameCard
>();
public
List
<
GameCard
>
opHandCards
=
new
List
<
GameCard
>();
List
<
GameCard
>
myPreHandCards
=
new
List
<
GameCard
>();
List
<
GameCard
>
opPreHandCards
=
new
List
<
GameCard
>();
public
int
GetMyHandCount
()
public
int
GetMyHandCount
()
{
{
if
(
needRefreshHand0
)
if
(
needRefreshHand0
)
{
{
myHandCards
.
Clear
(
);
myHandCards
=
new
List
<
GameCard
>(
myPreHandCards
);
foreach
(
var
card
in
cards
)
foreach
(
var
card
in
cards
)
if
(
card
.
p
.
controller
==
0
&&
(
card
.
p
.
location
&
(
uint
)
CardLocation
.
Hand
)
>
0
)
if
(
card
.
p
.
controller
==
0
)
myHandCards
.
Add
(
card
);
if
((
card
.
p
.
location
&
(
uint
)
CardLocation
.
Hand
)
>
0
)
if
(!
myHandCards
.
Contains
(
card
))
myHandCards
.
Add
(
card
);
needRefreshHand0
=
false
;
needRefreshHand0
=
false
;
}
}
return
myHandCards
.
Count
;
return
myHandCards
.
Count
;
...
@@ -6135,10 +6157,12 @@ namespace MDPro3
...
@@ -6135,10 +6157,12 @@ namespace MDPro3
{
{
if
(
needRefreshHand1
)
if
(
needRefreshHand1
)
{
{
opHandCards
.
Clear
(
);
opHandCards
=
new
List
<
GameCard
>(
opPreHandCards
);
foreach
(
var
card
in
cards
)
foreach
(
var
card
in
cards
)
if
(
card
.
p
.
controller
!=
0
&&
(
card
.
p
.
location
&
(
uint
)
CardLocation
.
Hand
)
>
0
)
if
(
card
.
p
.
controller
!=
0
)
opHandCards
.
Add
(
card
);
if
((
card
.
p
.
location
&
(
uint
)
CardLocation
.
Hand
)
>
0
)
if
(!
opHandCards
.
Contains
(
card
))
opHandCards
.
Add
(
card
);
needRefreshHand1
=
false
;
needRefreshHand1
=
false
;
}
}
return
opHandCards
.
Count
;
return
opHandCards
.
Count
;
...
...
Assets/Scripts/MDPro3/Tools.cs
View file @
e381d83f
...
@@ -196,7 +196,7 @@ namespace MDPro3
...
@@ -196,7 +196,7 @@ namespace MDPro3
if
(
n
>=
dic
.
Count
)
if
(
n
>=
dic
.
Count
)
n
=
dic
.
Count
-
1
;
n
=
dic
.
Count
-
1
;
var
enumerator
=
dic
.
GetEnumerator
();
var
enumerator
=
dic
.
GetEnumerator
();
for
(
int
i
=
0
;
i
<
n
;
i
++)
for
(
int
i
=
0
;
i
<
n
+
1
;
i
++)
enumerator
.
MoveNext
();
enumerator
.
MoveNext
();
return
enumerator
.
Current
;
return
enumerator
.
Current
;
}
}
...
...
Assets/Scripts/MDPro3/UI/Function/AutoScale.cs
View file @
e381d83f
...
@@ -25,6 +25,11 @@ namespace MDPro3.UI
...
@@ -25,6 +25,11 @@ namespace MDPro3.UI
else
else
transform
.
localScale
=
new
Vector3
(
width
,
height
,
transform
.
localScale
.
z
);
transform
.
localScale
=
new
Vector3
(
width
,
height
,
transform
.
localScale
.
z
);
}
}
private
void
OnDestroy
()
{
Program
.
onScreenChanged
-=
Scale
;
}
}
}
}
}
Data/locales/zh-CN/translation.conf
View file @
e381d83f
...
@@ -537,3 +537,5 @@ Off->Off
...
@@ -537,3 +537,5 @@ Off->Off
更换背景->更换背景
更换背景->更换背景
更新内容->更新内容
更新内容->更新内容
查看更新内容->查看更新内容
查看更新内容->查看更新内容
检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。->检测到新版先行卡,请至 [游戏设置]-[扩展卡包]-[更新先行卡] 处进行更新。
攻击被无效->攻击被无效
ProjectSettings/ProjectSettings.asset
View file @
e381d83f
...
@@ -135,8 +135,7 @@ PlayerSettings:
...
@@ -135,8 +135,7 @@ PlayerSettings:
16:9:
1
16:9:
1
Others
:
1
Others
:
1
bundleVersion
:
1.1.0
bundleVersion
:
1.1.0
preloadedAssets
:
preloadedAssets
:
[]
-
{
fileID
:
11400000
,
guid
:
5fb02d2098f52054b89ce4a9f63ba9ee
,
type
:
2
}
metroInputSource
:
0
metroInputSource
:
0
wsaTransparentSwapchain
:
0
wsaTransparentSwapchain
:
0
m_HolographicPauseOnTrackingLoss
:
1
m_HolographicPauseOnTrackingLoss
:
1
...
...
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