// Update is called once per frame void Update() { if (door.Closed && VictimeTest()) { door.Closed = false; cinematic.DoorCinematic(); door.GetComponent <SpriteRenderer>().color = Color.white; } if (IncantationTest()) { dead = true; cinematic.EndCinematic(); //GameManager.Instance.Win(); } }