Beispiel #1
0
    public void Construct(
        Settings settings,
        BulletFactory bulletFactory,
        IRunner runner
        )
    {
        _settings      = settings;
        _bulletFactory = bulletFactory;

        var runnerSlot = runner.GetEquipmentSlot();

        if (runnerSlot != null)
        {
            runnerSlot.SetEquipment(gameObject, "Hand");
        }
        else
        {
            transform.SetParent(runner.GetObject().transform, false);
        }
    }