Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
W
wdlc_mjb_unity
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
王雪伟
wdlc_mjb_unity
Commits
dbb38f2b
Commit
dbb38f2b
authored
Jul 23, 2021
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改全体加速
parent
2d710dfe
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
238 additions
and
10 deletions
+238
-10
rectMat.mat
Assets/Game/Main/Material/rectMat.mat
+1
-1
立即喂食.png
Assets/Game/Main/Resource/ui/dialog/allspeed/立即喂食.png
+0
-0
立即喂食.png.meta
Assets/Game/Main/Resource/ui/dialog/allspeed/立即喂食.png.meta
+92
-0
CrazyCar.unity
Assets/Game/Main/Scenes/CrazyCar.unity
+131
-1
DialogControl.cs
Assets/Game/Main/Scripts/View/DialogControl.cs
+9
-3
FastPlanting.cs
Assets/Game/Main/Scripts/View/FastPlanting.cs
+5
-5
No files found.
Assets/Game/Main/Material/rectMat.mat
View file @
dbb38f2b
...
...
@@ -82,6 +82,6 @@ Material:
-
_UseUIAlphaClip
:
0
-
_ZWrite
:
1
m_Colors
:
-
_Center
:
{
r
:
0
,
g
:
-294
,
b
:
0
,
a
:
0
}
-
_Center
:
{
r
:
0
,
g
:
25
,
b
:
0
,
a
:
0
}
-
_Color
:
{
r
:
1
,
g
:
1
,
b
:
1
,
a
:
1
}
-
_EmissionColor
:
{
r
:
0
,
g
:
0
,
b
:
0
,
a
:
1
}
Assets/Game/Main/Resource/ui/dialog/allspeed/立即喂食.png
0 → 100644
View file @
dbb38f2b
45.1 KB
Assets/Game/Main/Resource/ui/dialog/allspeed/立即喂食.png.meta
0 → 100644
View file @
dbb38f2b
fileFormatVersion: 2
guid: 530e79a3a89ab4ef885f28cfe6b5bbd6
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: -1
aniso: -1
mipBias: -100
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
Assets/Game/Main/Scenes/CrazyCar.unity
View file @
dbb38f2b
...
...
@@ -1545,6 +1545,7 @@ RectTransform:
- {fileID: 1192815124}
- {fileID: 700544936}
- {fileID: 239550685}
- {fileID: 1260373416}
m_Father: {fileID: 1477235242}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
...
...
@@ -7133,7 +7134,7 @@ GameObject:
- component: {fileID: 239550686}
- component: {fileID: 239550688}
m_Layer: 5
m_Name:
Image
m_Name:
FeedButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
...
...
@@ -37726,6 +37727,135 @@ MonoBehaviour:
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!1 &1260373415
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1260373416}
- component: {fileID: 1260373419}
- component: {fileID: 1260373418}
- component: {fileID: 1260373417}
m_Layer: 5
m_Name: NewUserFeedButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1260373416
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1260373415}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 47444852}
m_RootOrder: 7
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: -244}
m_SizeDelta: {x: 416, y: 108}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1260373417
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1260373415}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 1260373418}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 2052625161}
m_MethodName: useSpeedRain
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
--- !u!114 &1260373418
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1260373415}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 530e79a3a89ab4ef885f28cfe6b5bbd6, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &1260373419
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1260373415}
m_CullTransparentMesh: 0
--- !u!1 &1260812809
GameObject:
m_ObjectHideFlags: 0
Assets/Game/Main/Scripts/View/DialogControl.cs
View file @
dbb38f2b
...
...
@@ -580,9 +580,13 @@ public class DialogControl : MonoBehaviour
AllSpeedDialog
.
SetActive
(
true
);
allSpeedDesc
.
text
=
"所有小猪立即获得2倍增长值"
;
useAllSpeedByVideoNumTv
.
text
=
"每天0点重置视频次数(剩余"
+
bean
.
todayVideoRemainingNum
+
"次)"
;
//#if UNITY_IOS
// moveAllSpeedDialog();
//#else
AllSpeedDialog
.
transform
.
Find
(
"Image/FeedButton"
).
gameObject
.
SetActive
(!
PlayerDataControl
.
Instance
.
IsNewUser
);
AllSpeedDialog
.
transform
.
Find
(
"Image/NewUserFeedButton"
).
gameObject
.
SetActive
(
PlayerDataControl
.
Instance
.
IsNewUser
);
//#if UNITY_IOS
// moveAllSpeedDialog();
//#else
Invoke
(
"showAd"
,
0.5f
);
Invoke
(
"moveAllSpeedDialog"
,
1f
);
//#endif
...
...
@@ -609,6 +613,8 @@ public class DialogControl : MonoBehaviour
{
AdUtils
.
showInterAd
(
"qtjs"
,
new
InterstitialAdListener
());
}
}
private
void
moveAllSpeedDialog
()
{
...
...
Assets/Game/Main/Scripts/View/FastPlanting.cs
View file @
dbb38f2b
...
...
@@ -25,6 +25,11 @@ public class FastPlanting : SingletonMono<FastPlanting>
foreach
(
var
item
in
landListDictionary
.
Values
)
{
if
(
item
.
status
==
4
)
{
ifLocking
=
true
;
}
if
(
item
.
status
==
1
)
{
ifCanPlanting
=
true
;
...
...
@@ -46,11 +51,6 @@ public class FastPlanting : SingletonMono<FastPlanting>
return
;
}
if
(
item
.
status
==
0
)
{
ifLocking
=
true
;
}
}
if
(!
ifCanPlanting
)
...
...
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