protected void PlayAnimation(string st) { lck = GetComponent <Lock>(); animator.Play(st); lck.AddListener(OnLockChange); }