csharp 0AAAA477-56B3-449B-A843-22AE469982AC

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp 0AAAA477-56B3-449B-A843-22AE469982AC相关的知识,希望对你有一定的参考价值。

using UnityEngine;
using Zenject;

public class ShipInputHandler : MonoBehaviour
{
    [Inject] private float speed;

    public void Update()
    {
        if (Input.GetKey(KeyCode.UpArrow))
        {
            transform.position += Vector3.forward * this.speed * Time.deltaTime;
        }

        if (Input.GetKey(KeyCode.DownArrow))
        {
            transform.position -= Vector3.forward * this.speed * Time.deltaTime;
        }
    }
}

以上是关于csharp 0AAAA477-56B3-449B-A843-22AE469982AC的主要内容,如果未能解决你的问题,请参考以下文章

csharp D B

csharp 85032DEB-501B-4D84-8844-8590996EBA25

csharp 9F3D4C02-FAB3-4F23-B478-741C01816893

csharp DA56B393-1887-4EA8-B445-C31A5ED61FB2

csharp 6FBDA6F6-C29B-4621-9582-6C8CCC39EFD6

csharp 536E8763-3198-483B-8EDE-991EB783B4C2