Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
F
First_FKQCW
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王雪伟
First_FKQCW
Commits
a8b74e8f
Commit
a8b74e8f
authored
May 18, 2021
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改按钮晃动
parent
e1609386
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
46 deletions
+46
-46
BuildPostProcessor.cs
Assets/AdSDK/Editor/BuildPostProcessor.cs
+24
-24
btn 1.controller
Assets/Game/Main/Animation/btn 1.controller
+2
-2
btn.controller
Assets/Game/Main/Animation/btn.controller
+5
-5
CrazyCar.unity
Assets/Game/Main/Scenes/CrazyCar.unity
+12
-12
CarPresenter.cs
Assets/Game/Main/Scripts/Presenter/CarPresenter.cs
+3
-3
No files found.
Assets/AdSDK/Editor/BuildPostProcessor.cs
View file @
a8b74e8f
...
...
@@ -15,40 +15,40 @@ using System.IO;
using
UnityEngine
;
using
UnityEditor
;
using
UnityEditor.Callbacks
;
using
UnityEditor.iOS.Xcode
;
//
using UnityEditor.iOS.Xcode;
public
class
BuildPostProcessor
{
[
PostProcessBuildAttribute
(
1
)]
public
static
void
OnPostProcessBuild
(
BuildTarget
target
,
string
path
)
{
if
(
target
==
BuildTarget
.
iOS
)
{
// Read.
string
projectPath
=
PBXProject
.
GetPBXProjectPath
(
path
);
PBXProject
project
=
new
PBXProject
();
project
.
ReadFromString
(
File
.
ReadAllText
(
projectPath
));
string
targetName
=
project
.
GetUnityMainTargetGuid
();
string
targetGUID
=
project
.
TargetGuidByName
(
targetName
);
//
[PostProcessBuildAttribute(1)]
//
public static void OnPostProcessBuild(BuildTarget target, string path)
//
{
//
if (target == BuildTarget.iOS)
//
{
//
// Read.
//
string projectPath = PBXProject.GetPBXProjectPath(path);
//
PBXProject project = new PBXProject();
//
project.ReadFromString(File.ReadAllText(projectPath));
//
string targetName = project.GetUnityMainTargetGuid();
//
string targetGUID = project.TargetGuidByName(targetName);
AddFrameworks
(
project
,
targetGUID
);
//
AddFrameworks(project, targetGUID);
// Write.
File
.
WriteAllText
(
projectPath
,
project
.
WriteToString
());
}
}
//
// Write.
//
File.WriteAllText(projectPath, project.WriteToString());
//
}
//
}
static
void
AddFrameworks
(
PBXProject
project
,
string
targetGUID
)
{
// Frameworks
//
static void AddFrameworks(PBXProject project, string targetGUID)
//
{
//
// Frameworks
project
.
AddFrameworkToProject
(
targetGUID
,
"libz.dylib"
,
false
);
project
.
AddFrameworkToProject
(
targetGUID
,
"libsqlite3.tbd"
,
false
);
project
.
AddFrameworkToProject
(
targetGUID
,
"CoreTelephony.framework"
,
false
);
//
project.AddFrameworkToProject(targetGUID, "libz.dylib", false);
//
project.AddFrameworkToProject(targetGUID, "libsqlite3.tbd", false);
//
project.AddFrameworkToProject(targetGUID, "CoreTelephony.framework", false);
}
//
}
}
\ No newline at end of file
Assets/Game/Main/Animation/btn 1.controller
View file @
a8b74e8f
...
...
@@ -70,7 +70,7 @@ AnimatorState:
m_MirrorParameterActive
:
0
m_CycleOffsetParameterActive
:
0
m_TimeParameterActive
:
0
m_Motion
:
{
fileID
:
7400000
,
guid
:
6633a126064604af6b48a22ffb5b21e0
,
type
:
2
}
m_Motion
:
{
fileID
:
7400000
,
guid
:
181a5414734ca4cc296a1c858a495623
,
type
:
2
}
m_Tag
:
m_SpeedParameter
:
m_MirrorParameter
:
...
...
@@ -800,7 +800,7 @@ AnimatorState:
m_MirrorParameterActive
:
0
m_CycleOffsetParameterActive
:
0
m_TimeParameterActive
:
0
m_Motion
:
{
fileID
:
7400000
,
guid
:
3cf900a2f08e248a8b0a4765f0fd0a2a
,
type
:
2
}
m_Motion
:
{
fileID
:
7400000
,
guid
:
0235356cfe0e141eeaf63ead572b25e9
,
type
:
2
}
m_Tag
:
m_SpeedParameter
:
m_MirrorParameter
:
...
...
Assets/Game/Main/Animation/btn.controller
View file @
a8b74e8f
...
...
@@ -334,31 +334,31 @@ AnimatorController:
m_DefaultFloat
:
0
m_DefaultInt
:
0
m_DefaultBool
:
0
m_Controller
:
{
fileID
:
0
}
m_Controller
:
{
fileID
:
910000
0
}
-
m_Name
:
Highlighted
m_Type
:
9
m_DefaultFloat
:
0
m_DefaultInt
:
0
m_DefaultBool
:
0
m_Controller
:
{
fileID
:
0
}
m_Controller
:
{
fileID
:
910000
0
}
-
m_Name
:
Pressed
m_Type
:
9
m_DefaultFloat
:
0
m_DefaultInt
:
0
m_DefaultBool
:
0
m_Controller
:
{
fileID
:
0
}
m_Controller
:
{
fileID
:
910000
0
}
-
m_Name
:
Selected
m_Type
:
9
m_DefaultFloat
:
0
m_DefaultInt
:
0
m_DefaultBool
:
0
m_Controller
:
{
fileID
:
0
}
m_Controller
:
{
fileID
:
910000
0
}
-
m_Name
:
Disabled
m_Type
:
9
m_DefaultFloat
:
0
m_DefaultInt
:
0
m_DefaultBool
:
0
m_Controller
:
{
fileID
:
0
}
m_Controller
:
{
fileID
:
910000
0
}
m_AnimatorLayers
:
-
serializedVersion
:
5
m_Name
:
Base Layer
...
...
Assets/Game/Main/Scenes/CrazyCar.unity
View file @
a8b74e8f
...
...
@@ -863,7 +863,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 2
27, y: 38
0}
m_AnchoredPosition: {x: 2
63.9, y: 55
0}
m_SizeDelta: {x: 209, y: 116}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &38710111
...
...
@@ -2827,6 +2827,7 @@ RectTransform:
- {fileID: 771430749}
- {fileID: 634203768}
- {fileID: 104890968}
- {fileID: 714160461}
m_Father: {fileID: 0}
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
...
...
@@ -6652,7 +6653,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 201, y:
-7
}
m_AnchoredPosition: {x: 201, y:
186
}
m_SizeDelta: {x: 84, y: 27}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &291271162
...
...
@@ -6669,7 +6670,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget:
1
m_RaycastTarget:
0
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
...
...
@@ -14564,7 +14565,6 @@ RectTransform:
- {fileID: 164107942}
- {fileID: 398443785}
- {fileID: 881470869}
- {fileID: 714160461}
m_Father: {fileID: 634203768}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
...
...
@@ -17431,12 +17431,12 @@ RectTransform:
- {fileID: 291271161}
- {fileID: 38710110}
- {fileID: 1553180417}
m_Father: {fileID:
592572115
}
m_RootOrder:
25
m_Father: {fileID:
105570271
}
m_RootOrder:
7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x:
31, y: 170
}
m_AnchoredPosition: {x:
0, y: -621
}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &714528365
...
...
@@ -27512,7 +27512,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x:
-31
, y: 371}
m_AnchoredPosition: {x:
0
, y: 371}
m_SizeDelta: {x: 750, y: 3000}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1191593873
...
...
@@ -33849,7 +33849,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y:
95
}
m_AnchoredPosition: {x: 0, y:
288
}
m_SizeDelta: {x: 496, y: 171}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1447594719
...
...
@@ -33866,7 +33866,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget:
1
m_RaycastTarget:
0
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
...
...
@@ -36692,8 +36692,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x:
0.0032015, y: 75
.5}
m_SizeDelta: {x: 5
61.0065, y: 191.99982
}
m_AnchoredPosition: {x:
16.252, y: 284
.5}
m_SizeDelta: {x: 5
28.5033, y: 223.96814
}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1553180418
MonoBehaviour:
Assets/Game/Main/Scripts/Presenter/CarPresenter.cs
View file @
a8b74e8f
...
...
@@ -67,7 +67,7 @@ public class CarPresenter : CarContract.Presenter
parm
.
Add
(
"parkingSpaceId"
,
parkingSpaceId
);
HttpTool
.
Instance
.
_Post
(
"app/v1/game/fkqcw/parking/pickup"
,
parm
,
new
Action
<
ParkingSpace
>((
bean
)
=>
{
Guide
.
guide
.
onClickStep3
();
//
Guide.guide.onClickStep3();
// mView.CarInfo(bean);
EventCenter
.
Broadcast
(
MyEventType
.
UPDATE_CAR_LIST_DATA
);
...
...
@@ -103,7 +103,7 @@ public class CarPresenter : CarContract.Presenter
HttpTool
.
Instance
.
_Post
(
"app/v1/game/fkqcw/parking/unlock"
,
parm
,
new
Action
<
ParkingSpace
>((
bean
)
=>
{
EventUtils
.
OnEvent
(
"unlock"
+
parkingSpaceId
);
Guide
.
guide
.
onClickStep4
();
//
Guide.guide.onClickStep4();
//mView.CarInfo(bean);
//更新主页车列表
EventCenter
.
Broadcast
(
MyEventType
.
UPDATE_CAR_LIST_DATA
);
...
...
@@ -125,7 +125,7 @@ public class CarPresenter : CarContract.Presenter
HttpTool
.
Instance
.
_Post
(
"app/v1/game/fkqcw/parking/unlock"
,
parm
,
new
Action
<
ParkingSpace
>((
bean
)
=>
{
EventUtils
.
OnEvent
(
"unlock"
+
parkingSpaceId
);
Guide
.
guide
.
onClickStep4
();
//
Guide.guide.onClickStep4();
//mView.CarInfo(bean);
//更新主页车列表
EventCenter
.
Broadcast
(
MyEventType
.
UPDATE_CAR_LIST_DATA
);
...
...
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