Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
civilization-iii
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
true-history-committee
civilization-iii
Commits
bbb94d3e
Commit
bbb94d3e
authored
Jan 26, 2018
by
16홍선우
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DepPrefab modified by tiny bit
parent
7f804e8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
11 deletions
+50
-11
DepPrefab.cs
Assets/Scripts/PrefabScript/DepPrefab.cs
+50
-11
No files found.
Assets/Scripts/PrefabScript/DepPrefab.cs
View file @
bbb94d3e
using
System.Collections
;
using
System.Collections
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
UnityEngine
;
using
UnityEngine
;
using
UnityEngine.UI
;
using
CivModel
;
using
CivModel.Common
;
using
CivPresenter
;
public
class
DepPrefab
:
MonoBehaviour
{
public
class
DepPrefab
:
MonoBehaviour
{
// Use this for initialization
void
Start
()
{
private
Text
unitName
;
private
Image
unitPrt
;
}
// Use this for initialization
// Update is called once per frame
void
Awake
()
void
Update
()
{
{
Debug
.
Log
(
"call DepPre"
);
}
unitName
=
gameObject
.
GetComponentsInChildren
<
Text
>()[
2
];
unitName
.
text
=
"초기"
;
unitPrt
=
gameObject
.
GetComponentsInChildren
<
Image
>()[
0
];
}
void
Start
()
{
}
// Update is called once per frame
void
Update
()
{
}
public
GameObject
MakeItem
(
IProductionFactory
fact
)
{
string
nameofFactory
=
ProductionFactoryTraits
.
GetFactoryName
(
fact
);
unitPrt
.
sprite
=
Resources
.
Load
<
Sprite
>(
"Unit_portrait/"
+
nameofFactory
);
unitName
.
text
=
nameofFactory
;
return
this
.
gameObject
;
}
public
GameObject
MakeItem
()
{
if
(
unitName
==
null
)
{
Debug
.
Log
(
"Noname"
);
}
unitName
.
text
=
"배치 가능 유닛 없음"
;
unitName
.
fontSize
=
10
;
return
this
.
gameObject
;
}
}
}
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