// Update is called once per frame void Update() { Obj = s.Player; s.Inform.color = new Color(s.Inform.color.r, s.Inform.color.g, s.Inform.color.b, Mathf.SmoothDamp(s.Inform.color.a, T, ref velocity, smoothTime)); if (s.Active) { T = 1; } else { T = 0; } if (Input.GetKeyDown(KeyCode.X) && s.Active) { Obj.Here = this; Obj.Anim.SetTrigger("Dead"); Obj.Dead(); } }