Exemple #1
0
 /// <summary>
 /// スワイプ中
 /// </summary>
 private void OnSwiping(SwipeEventData ev)
 {
     //角度の設定
     if (attitude)
     {
         attitude.Go(ev.detector.Angle);
     }
 }
Exemple #2
0
 /// <summary>
 /// ターゲッティング
 /// </summary>
 private void Targeting()
 {
     //武器の角度変更
     if (weapon)
     {
         weapon.SetTargetAngle(target);
     }
     //進む
     if (attitude)
     {
         //角度
         Vector2 d     = target.position - trans.position;
         float   angle = Mathf.Atan2(d.y, d.x) * Mathf.Rad2Deg;
         attitude.Go(angle);
     }
 }