Exemplo n.º 1
0
    /// <summary>
    /// Triggers the spawning of game over particles on the attached particle spawner
    /// </summary>
    private void TriggerGameOverParticles()
    {
        ParticleSpawner spawner = GetComponent <ParticleSpawner>();

        if (GlobalControl.Instance.isRotation)
        {
            spawner.SpawnGameOverParticles(rotationObj.transform.GetChild(0).position);
        }
        else
        {
            spawner.SpawnGameOverParticles(target.transform.position);
        }
    }