namespace削除
This commit is contained in:
parent
d439bbd8fb
commit
aa58935fec
|
|
@ -1,10 +1,8 @@
|
||||||
using System;
|
using System;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace MyGame.Scenes.Main
|
public class Pan : MonoBehaviour
|
||||||
{
|
{
|
||||||
public class Pan : MonoBehaviour
|
|
||||||
{
|
|
||||||
[SerializeField] private PanController controller;
|
[SerializeField] private PanController controller;
|
||||||
[SerializeField] private float thrust;
|
[SerializeField] private float thrust;
|
||||||
|
|
||||||
|
|
@ -17,5 +15,4 @@ namespace MyGame.Scenes.Main
|
||||||
direct = controller.Delta.magnitude < 0.1f ? 0 : 1;
|
direct = controller.Delta.magnitude < 0.1f ? 0 : 1;
|
||||||
other.attachedRigidbody.AddForce(controller.Delta * thrust * direct, ForceMode2D.Impulse);
|
other.attachedRigidbody.AddForce(controller.Delta * thrust * direct, ForceMode2D.Impulse);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue