Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
curvedflats
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
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
Flatland
curvedflats
Commits
2870cd0a
Commit
2870cd0a
authored
Aug 22, 2019
by
16이진형
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
알람 기본 기능
parent
8a24918b
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
651 additions
and
1 deletion
+651
-1
AlertManager.cs
Assets/AlertManager.cs
+47
-0
AlertManager.cs.meta
Assets/AlertManager.cs.meta
+11
-0
Test.unity
Assets/Scenes/Test.unity
+585
-1
GameManager.meta
Assets/Scripts/GameManager.meta
+8
-0
No files found.
Assets/AlertManager.cs
0 → 100644
View file @
2870cd0a
using
System.Collections
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine.UI
;
public
class
AlertManager
:
MonoBehaviour
{
[
SerializeField
]
GameObject
alertObject
;
[
SerializeField
]
Button
okButton
;
[
SerializeField
]
Button
cancelButton
;
[
SerializeField
]
Text
alertText
;
// Start is called before the first frame update
void
Start
()
{
Close
();
Alert
(
"test"
);
}
// Update is called once per frame
void
Update
()
{
}
public
void
Alert
(
string
text
)
{
Open
();
alertText
.
text
=
text
;
okButton
.
onClick
.
AddListener
(
Close
);
cancelButton
.
onClick
.
AddListener
(
Close
);
}
public
void
Open
()
{
alertObject
.
SetActive
(
true
);
}
public
void
Close
()
{
okButton
.
onClick
.
RemoveAllListeners
();
cancelButton
.
onClick
.
RemoveAllListeners
();
alertObject
.
SetActive
(
false
);
}
}
Assets/AlertManager.cs.meta
0 → 100644
View file @
2870cd0a
fileFormatVersion: 2
guid: fe82d3fd30784eb47b1817cc46e1e205
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Assets/Scenes/Test.unity
View file @
2870cd0a
This diff is collapsed.
Click to expand it.
Assets/Scripts/GameManager.meta
0 → 100644
View file @
2870cd0a
fileFormatVersion: 2
guid: 873b374412d1e9f40aa3636ed9e2bdf8
folderAsset: yes
DefaultImporter:
externalObjects: {}
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