Ejemplo n.º 1
0
    public override void BumperHit(OrbiterBase other, bool rightSide)
    {
        Debug.Log("bonk");
        if (other.GetType() == typeof(PlanetoidOrbiter) ||
            other.GetType() == typeof(EnemyOrbitrer))
        {
            life--;
            livesManager.DisableLife(maxLife - life - 1);

            Setup();
        }
        else if (other.GetType() == typeof(OrbiterBase))
        {
            currSpeed = 0;
        }
    }