void Start() { Dtime = time; Player = GameObject.FindGameObjectWithTag("Player"); PlayerPos = Player.GetComponent <MouseMotion>(); ProgressB = GameObject.FindGameObjectWithTag("Slider"); PB = ProgressB.GetComponent <Slider>(); ProgressB.SetActive(false); PB.minValue = -time; }
protected virtual void OnMouseMotion(MouseEventArgs e) { MouseMotion?.Invoke(this, e); }