Added player mod (powerups)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user