AlienMaster 2.0
AlienMaster 2.0
CC#
Created by Gingy on 3/24/2024 in #help
2D game in 3D enviroment
No worries get on a discord call
7 replies
CC#
Created by Gingy on 3/24/2024 in #help
2D game in 3D enviroment
so try logging the x, y, z location of the object if you haven't already
7 replies
CC#
Created by Gingy on 3/24/2024 in #help
2D game in 3D enviroment
And I suggest maybe running some commands to inspect an object's meta-data
7 replies
CC#
Created by Gingy on 3/24/2024 in #help
2D game in 3D enviroment
have you tried flipping the if and else-if statements
if (!(gameObject.CompareTag("Player") && other.CompareTag(scoreObjectTag)))
{
HandleScoreCollision(other.gameObject);
}
else if (!(gameObject.CompareTag("Player") && other.CompareTag(gameOverObjectTag)))
{
Debug.Log("Game Over object collided: " + other.gameObject.name); // Add a debug log for game over collisions
EndGame();
}
if (!(gameObject.CompareTag("Player") && other.CompareTag(scoreObjectTag)))
{
HandleScoreCollision(other.gameObject);
}
else if (!(gameObject.CompareTag("Player") && other.CompareTag(gameOverObjectTag)))
{
Debug.Log("Game Over object collided: " + other.gameObject.name); // Add a debug log for game over collisions
EndGame();
}
7 replies
CC#
Created by AlienMaster 2.0 on 7/25/2023 in #help
❔ C# Interfaces
thx
10 replies
CC#
Created by AlienMaster 2.0 on 7/25/2023 in #help
❔ C# Interfaces
10 replies
CC#
Created by AlienMaster 2.0 on 7/25/2023 in #help
❔ C# Interfaces
And there is no compiler error when I give an Interface's method an implementation
10 replies
CC#
Created by AlienMaster 2.0 on 7/25/2023 in #help
❔ C# Interfaces
For example, I found out now that Interfaces cannot have instance fields but can have static fields
10 replies