private void initTurn() { if (IsThiefTurn) { thief.OnStartTurn(); postProcess.profile = thiefProfile; partrait.SetTrigger("Thief"); partrait.ResetTrigger("Security"); foreach (lamp l in lampParent.GetComponentsInChildren <lamp>()) { l.killZone.enabled = true; } } else { thief.OnEndTurn(); postProcess.profile = securityProfile; ActivatedLamp = false; partrait.SetTrigger("Security"); partrait.ResetTrigger("Thief"); foreach (lamp l in lampParent.GetComponentsInChildren <lamp>()) { l.killZone.enabled = false; } } timer.Play("TimerAnimation", 0, 1 - CurrentTurnTime / 10); turnStartTime = Time.time; }