Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/AstroBalance/Assets/Prefabs/Star.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GameObject:
- component: {fileID: 2183087405533850476}
m_Layer: 0
m_Name: Star
m_TagString: Untagged
m_TagString: Star
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
Expand Down
6 changes: 6 additions & 0 deletions projects/AstroBalance/Assets/Scripts/StarCollector/Star.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ void Update()

private void OnTriggerEnter2D(Collider2D other)
{
if (other.CompareTag("Star"))
{
// ignore collisions between stars
return;
}

if (!gameManager.IsGameActive())
{
return;
Expand Down
5 changes: 3 additions & 2 deletions projects/AstroBalance/ProjectSettings/TagManager.asset
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!78 &1
TagManager:
serializedVersion: 2
tags: []
serializedVersion: 3
tags:
- Star
layers:
- Default
- TransparentFX
Expand Down