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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp 536E8763-3198-483B-8EDE-991EB783B4C2相关的知识,希望对你有一定的参考价值。

using UnityEngine;
using Zenject;

public class GameRunner : ITickable
{
    private readonly Ship.Factory ship_factory;

    private Vector3 last_ship_position;

    public GameRunner(Ship.Factory ship_factory_injection)
    {
        this.ship_factory = ship_factory_injection;
    }

    public void Tick()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            var ship = this.ship_factory.Create(Random.Range(2, 20));

            ship.transform.position = this.last_ship_position;

            this.last_ship_position += Vector3.forward * 2;
        }
    }
}

以上是关于csharp 536E8763-3198-483B-8EDE-991EB783B4C2的主要内容,如果未能解决你的问题,请参考以下文章

Codeforces Round #536 (Div. 2) E dp + set

mysoftall

mysoft

csharp 931BA7AB-945D-427E-B1B6-2A58DD87647B

csharp DFF2C7B2-966E-41BE-BF26-04A6726B59F5

Codeforces Round #536 (Div. 2)