HorizontalAngle() static private method

static private HorizontalAngle ( Vector3 direction ) : float
direction Vector3
return float
 public void Init()
 {
     velocity.y = 0;
     speed      = velocity.magnitude;
     angle      = PlayerAnimation.HorizontalAngle(velocity);
 }
Ejemplo n.º 2
0
 public override void Init()
 {
     this.velocity.y = 0;
     this.speed      = this.velocity.magnitude;
     this.angle      = PlayerAnimation.HorizontalAngle(this.velocity);
 }