private void Update() { gb.Spin(rotSpeed); gb.Elevate(Mathf.Sin(Time.time * bobSpeed) * bobStrength); }
private void Update() { gb.Orbit(Vector2.up * speed); gb.Elevate(dir.h); Debug.DrawRay(transform.position, transform.eulerAngles + new Vector3(0, dir.h, speed)); }