Пример #1
0
    public void EndDeathTimer()
    {
        deathRoot.SetActive(false);
        deathParticles.SetActive(false);
        CameraControl camera = Camera.main.GetComponent <CameraControl>();

        camera.ChangeProfile(Defs.PostProcessingProfile.Normal);
        camera.offsetMagnitude             = 6;
        GetComponent <CanvasGroup>().alpha = 1;
    }
Пример #2
0
    public void InitiateDeathTimer()
    {
        GetComponent <CanvasGroup>().alpha = 0;
        deathRoot.SetActive(true);
        deathParticles.SetActive(true);
        CameraControl camera = Camera.main.GetComponent <CameraControl>();

        camera.ChangeProfile(Defs.PostProcessingProfile.Death);
        camera.offsetMagnitude = 1;
    }