Added player mod (powerups)

This commit is contained in:
Pasha Bibko
2025-11-27 11:21:14 +00:00
parent 0dbbf02789
commit 055e688df5
12 changed files with 306 additions and 6 deletions

View File

@@ -54,11 +54,25 @@ public class PlayerController : OrbitalPositionBehaviour
{
if (!m_OrbitalPosition.m_IsAttachedToRings)
return;
if (other.CompareTag("Enemy"))
{
GlobalOrbitalPositionManager.RestartSimulation();
m_SuicidePoint = transform.position;
m_KillingItself = true;
m_DeathLerp = 0f;
}
GlobalOrbitalPositionManager.RestartSimulation();
m_SuicidePoint = transform.position;
m_KillingItself = true;
m_DeathLerp = 0f;
else if (other.CompareTag("PlayerMod"))
{
other.OnCollision(this);
Debug.Log("Collided with player mod");
}
else
{
Debug.Log("Unknown collision occured");
}
}
public override void OnSimulationRestart()