Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mr BigSock
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gard Aleksander Furre
Mr BigSock
Commits
d50963a6
Commit
d50963a6
authored
2 years ago
by
Robin Ruud Kristensen
Browse files
Options
Downloads
Patches
Plain Diff
added making map again after boss is dead
parent
fc2ab1f6
No related branches found
Branches containing commit
No related tags found
1 merge request
!79
Ruud1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MrBigsock/Assets/Code/FollowPlayer.cs
+16
-1
16 additions, 1 deletion
MrBigsock/Assets/Code/FollowPlayer.cs
with
16 additions
and
1 deletion
MrBigsock/Assets/Code/FollowPlayer.cs
+
16
−
1
View file @
d50963a6
...
...
@@ -15,18 +15,33 @@ namespace Bigsock
[
SerializeField
]
private
CinemachineConfiner2D
cameraMap
;
private
int
levels
=
1
;
Vector3
offset
=
new
Vector3
(
0
,
0
,
-
10
);
int
i
=
0
;
GameObject
[]
boss
;
GameObject
player
;
GameObject
door
;
void
Start
()
{
neighborMapGenerator
.
RunProceduralGeneration
();
player
=
GameObject
.
Find
(
"BigSock"
);
}
void
LateUpdate
()
{
boss
=
GameObject
.
FindGameObjectsWithTag
(
"Boss"
);
if
(
boss
.
Length
==
0
&&
levels
<=
1
)
{
neighborMapGenerator
.
RunProceduralGeneration
();
player
.
transform
.
position
=
new
Vector3
(
9
,
5
,
0
);
levels
++;
}
int
i
=
0
;
if
(
i
==
0
)
{
cameraMap
.
InvalidateCache
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment