Newer
Older
DungeonShooting / DungeonShooting_Godot / src / test / TestActivity.cs
@小李xl 小李xl on 20 Dec 2022 242 bytes 测试靠力来移动
  1. using Godot;
  2.  
  3. public class TestActivity : ActivityObject
  4. {
  5. public TestActivity() : base(ResourcePath.prefab_test_TestActivity_tscn)
  6. {
  7. var externalForce = MoveController.AddForce("move");
  8. externalForce.Velocity = new Vector2(0, 60);
  9. }
  10. }