Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
WidowmakerSimulator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
15박보승
WidowmakerSimulator
Commits
fa2f53c2
Commit
fa2f53c2
authored
Oct 13, 2019
by
15박보승
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
록온 UI 개선
parent
406f00c4
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
397 additions
and
19 deletions
+397
-19
TargetLocked.prefab
Grapplers/Assets/Prefabs/TargetLocked.prefab
+254
-15
IngameUIManager.cs
Grapplers/Assets/Scripts/IngameUIManager.cs
+4
-4
RotateObject.cs
Grapplers/Assets/Scripts/RotateObject.cs
+13
-0
RotateObject.cs.meta
Grapplers/Assets/Scripts/RotateObject.cs.meta
+11
-0
lockon.png
Grapplers/Assets/lockon.png
+0
-0
lockon.png.meta
Grapplers/Assets/lockon.png.meta
+115
-0
No files found.
Grapplers/Assets/Prefabs/TargetLocked.prefab
View file @
fa2f53c2
This diff is collapsed.
Click to expand it.
Grapplers/Assets/Scripts/IngameUIManager.cs
View file @
fa2f53c2
...
@@ -7,7 +7,7 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
...
@@ -7,7 +7,7 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
{
{
[
SerializeField
]
[
SerializeField
]
private
GameObject
targetLockedUIPrefab
;
private
GameObject
targetLockedUIPrefab
;
private
List
<
Image
>
targetLockedUIs
=
new
List
<
Image
>();
private
List
<
RectTransform
>
targetLockedUIs
=
new
List
<
RectTransform
>();
[
SerializeField
]
[
SerializeField
]
private
Text
heightText
;
private
Text
heightText
;
...
@@ -50,15 +50,15 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
...
@@ -50,15 +50,15 @@ public class IngameUIManager : SingletonBehaviour<IngameUIManager>
for
(
int
j
=
0
;
j
<
pos
.
Length
-
count
;
j
++)
for
(
int
j
=
0
;
j
<
pos
.
Length
-
count
;
j
++)
{
{
targetLockedUIs
.
Add
(
Instantiate
(
targetLockedUIPrefab
,
transform
).
GetComponent
<
Image
>());
targetLockedUIs
.
Add
(
Instantiate
(
targetLockedUIPrefab
,
transform
).
GetComponent
<
RectTransform
>());
}
}
//Debug.Log(targetLockedUIs.Count);
//Debug.Log(targetLockedUIs.Count);
//Debug.Log(pos.Length);
//Debug.Log(pos.Length);
for
(;
i
<
pos
.
Length
;
i
++)
for
(;
i
<
pos
.
Length
;
i
++)
{
{
Vector2
viewportPoint
=
Camera
.
main
.
WorldToViewportPoint
(
pos
[
i
]);
Vector2
viewportPoint
=
Camera
.
main
.
WorldToViewportPoint
(
pos
[
i
]);
targetLockedUIs
[
i
].
rectTransform
.
anchorMin
=
viewportPoint
;
targetLockedUIs
[
i
].
anchorMin
=
viewportPoint
;
targetLockedUIs
[
i
].
rectTransform
.
anchorMax
=
viewportPoint
;
targetLockedUIs
[
i
].
anchorMax
=
viewportPoint
;
}
}
for
(
tmp
=
i
;
i
<
targetLockedUIs
.
Count
;
i
++)
for
(
tmp
=
i
;
i
<
targetLockedUIs
.
Count
;
i
++)
{
{
...
...
Grapplers/Assets/Scripts/RotateObject.cs
0 → 100644
View file @
fa2f53c2
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
public
class
RotateObject
:
MonoBehaviour
{
public
Vector3
eulerAngle
;
private
void
Update
()
{
transform
.
Rotate
(
eulerAngle
*
Time
.
deltaTime
);
}
}
Grapplers/Assets/Scripts/RotateObject.cs.meta
0 → 100644
View file @
fa2f53c2
fileFormatVersion: 2
guid: 5d123f8ee226b9948ad6a0ef6fa154a2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Grapplers/Assets/lockon.png
0 → 100644
View file @
fa2f53c2
3.72 KB
Grapplers/Assets/lockon.png.meta
0 → 100644
View file @
fa2f53c2
fileFormatVersion: 2
guid: 8eaef119264c3904382f84bc56313bb5
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 10
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
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
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Windows Store Apps
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:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:
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