Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
man-in-the-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
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
MIM
man-in-the-mirror
Commits
fa1e1c3c
Commit
fa1e1c3c
authored
May 24, 2019
by
15박보승
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BulletFactory 변경
parent
1c531be9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
BulletFactory.cs
Assets/Scripts/Bullets/BulletFactory.cs
+6
-9
No files found.
Assets/Scripts/Bullets/BulletFactory.cs
View file @
fa1e1c3c
...
...
@@ -11,16 +11,13 @@ public enum BulletCode
public
class
BulletFactory
{
public
bool
isInit
=
false
;
public
static
GameObject
truthBulletPrefab
=
null
,
fakeBulletPrefab
=
null
,
mirrorBulletPrefab
=
null
;
private
GameObject
truthBulletPrefab
=
null
,
fakeBulletPrefab
=
null
,
mirrorBulletPrefab
=
null
;
public
BulletFactory
()
public
BulletFactory
(
GameObject
truthBullet
,
GameObject
fakeBullet
,
GameObject
mirrorBullet
)
{
if
(
isInit
)
return
;
truthBulletPrefab
=
Resources
.
Load
<
GameObject
>(
"Prefabs/Bullets/TruthBullet"
);
fakeBulletPrefab
=
Resources
.
Load
<
GameObject
>(
"Prefabs/Bullets/FakeBullet"
);
mirrorBulletPrefab
=
Resources
.
Load
<
GameObject
>(
"Prefabs/Bullets/MirrorBullet"
);
truthBulletPrefab
=
truthBullet
;
fakeBulletPrefab
=
fakeBullet
;
mirrorBulletPrefab
=
mirrorBullet
;
}
/// <summary>
...
...
@@ -28,7 +25,7 @@ public class BulletFactory
/// </summary>
/// <param name="bulletCode">Type of bullet that wants to make</param>
/// <returns></returns>
public
static
Bullet
MakeBullet
(
BulletCode
bulletCode
)
public
Bullet
MakeBullet
(
BulletCode
bulletCode
)
{
switch
(
bulletCode
)
{
...
...
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