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